Re: [PATCH] Send quota messages via netlink

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

On Thu 30-08-07 14:10:10, Serge E. Hallyn wrote:
  Maybe before proceeding further with the discussion I'd like to
understand following: What are these user namespaces supposed to be good
for?
  I imagine it so that you have a machine and on it several virtual
machines which are sharing a filesystem (or it could be a cluster). Now you
want UIDs to be independent between these virtual machines. That's it,
right?
  Now to continue the example: Alice has UID 100 on machineA, Bob has
 UID 100 on machineB. These translate to UIDs 1000 and 1001 on the common
filesystem. Process of Alice writes to a file and Bob becomes to be over
quota. In this situation, there would be probably two processes (from
machineA and machineB) listening on the netlink socket. We want to send a
message so that on Alice's desktop we can show a message: "You caused
Bob to exceed his quotas" and of Bob's desktop: "Alice has caused that you
are over quota.".
  Because there may be is not a notion of Bob on machineA or of Alice on
machineB, we are in trouble, right? What I like the most is to use the
filesystem identities (as you suggested in some other email). I. e. because
both Alice and Bob share a filesystem, identities of both have to make sense
to it (for example for purposes of permission checking). So we can probably
send via netlink these (in our example ids 1000 and 1001) and hope that
inside machineA and machineB there will be a way to translate these
identities to names "Alice" and "Bob". So that user can understand what
is happenning. Does this sound plausible?
  If we go this route, then we only need a kernel function, that will
for a pair ($filesystem, $task) return indentity of that $task used
for operations on $filesystem...

								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)