Re: [PATCH] Send quota messages via netlink

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Eric W. Biederman <ebiederm@...>
Cc: Andrew Morton <akpm@...>, <linux-kernel@...>, Balbir Singh <balbir@...>, Serge E. Hallyn <serue@...>, <containers@...>
Date: Wednesday, August 29, 2007 - 3:26 pm

On Wed 29-08-07 12:31:52, Eric W. Biederman wrote:
  Yes, the quota will still be billed to Alice and originally we complained
only about Alice. Now, we are actually passing identities of two users: The
one who actually caused the quota to be exceeded and the one whose quota is
exceeded. Userspace app can then decide what to do with the information...
For example it makes sence to display the message to both Alice and Bob in
the case you've described...

  OK, quota kind of works for NFSv4 - we simply enforce quotas on the
server on a traditional filesystem and there are some RPC calls to get
quota status. For 9p, it does not work. But we should probably design the
interface generic enough so that it accommodates those untraditional
cases anyway.

  I see it's a complicated matter :). What I need to somehow pass to
userspace is something (and I don't really care whether it will be number,
string or whatever) that userspace can read and e.g. find a terminal
window or desktop the affected user has open and also translate the
identity to some user-understandable name (average user Joe has to
understand that he should quickly cleanup his home directory ;).
  Thinking more about it, we could probably pass a string to userspace in
the format:
  <namespace type>:<user identification>

So for example we can have something like:
  unix:1000 (traditional unix UIDs)
  nfs4:joe@machine

The problem is: Are we able to find out in which "namespace type" we are
and send enough identifying information from a context of unpriviledged
user?

								Honza
-- 
Jan Kara <jack@suse.cz>
SuSE CR Labs
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH] Send quota messages via netlink, Jan Kara, (Tue Aug 28, 10:13 am)
Re: [PATCH] Send quota messages via netlink, Andrew Morton, (Wed Aug 29, 12:51 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 10:43 am)
Re: [PATCH] Send quota messages via netlink, Randy Dunlap, (Mon Sep 3, 1:12 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 1:48 pm)
Re: [PATCH] Send quota messages via netlink, Andrew Morton, (Mon Sep 3, 2:41 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 6:03 am)
Re: [PATCH] Send quota messages via netlink, Andrew Morton, (Wed Aug 29, 12:13 am)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Wed Aug 29, 1:41 am)
Re: [PATCH] Send quota messages via netlink, Balbir Singh, (Wed Aug 29, 2:30 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 8:46 am)
Re: [PATCH] Send quota messages via netlink, Balbir Singh, (Fri Aug 31, 2:59 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 6:18 am)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 8:26 am)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Wed Aug 29, 2:31 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Aug 29, 3:26 pm)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Wed Aug 29, 5:06 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Thu Aug 30, 5:25 am)
Re: [PATCH] Send quota messages via netlink, Eric W. Biederman, (Thu Aug 30, 1:33 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 3:18 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 2:54 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 3:10 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Thu Aug 30, 6:18 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Thu Aug 30, 6:14 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Mon Sep 3, 10:21 am)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Tue Sep 4, 5:32 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Tue Sep 4, 6:49 pm)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Tue Sep 4, 7:48 pm)
Re: [PATCH] Send quota messages via netlink, Jan Kara, (Wed Sep 5, 9:32 am)
Re: [PATCH] Send quota messages via netlink, Serge E. Hallyn, (Wed Sep 5, 10:28 am)
Re: [PATCH] Send quota messages via netlink, Randy Dunlap, (Wed Aug 29, 11:57 am)
Re: [PATCH] Send quota messages via netlink, David Miller, (Wed Aug 29, 12:54 am)