Re: [PATCH] Send quota messages via netlink

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Serge E. Hallyn
Date: Thursday, August 30, 2007 - 3:14 pm

Quoting Jan Kara (jack@suse.cz):

(Please skip to the message end first, as I think you may not care about
the next bit of my blathering)

Right now they are only good for providing some separate accounting for
uid 1000 in one user namespace versus uid 1000 in another namespace.
All security enforcement must be done by actually providing separate
filesystems and separate pid namespaces and, hopefully, with a selinux
policy.

Eventually the idea will be that uid 1000 in one user namespace and uid
1000 in another namespace will be completely separate entities.  A
mounted filesystem will be tied to a particuler user namespace, and
the kernel will provide any cross-userns access perhaps the way I
described, with uid equivalence implemented through the keyring.

But note that this isn't really relevant when we get to NFS.  Two user
namespaces on one machine should have different network namespaces and
network addresses as well, and so should look to the NFS server like two
separate machines.

So the user namespaces are only really relevant when talking about local
filesystems.


Since this is over NFS, you handle it the way you would any other time
that user Alice on some other machine managed to do this.


Right, so long as we're talking about local filesystems that's the way
to go.  If a file write was allowed which brought bob over quota,
clearly the person responsible had some uid valid on the filesystem to
allow him to do so.


Ok, now I see.  This is again unrelated to user namespaces, it's an
issue regardless.

Is there no way to just report Alice as the guilty party to Bob on his
machine as (host=nfsserver,uid=1000)?

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