Re: [PATCH 0/3] keys: play nicely with user namespaces

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Serge E. Hallyn <serue@xxxxxxxxxx> wrote:

> so here is a first attempt at getting keys and uid namespaces
> to play nice.  The semantics need some discussion.  As I recall
> Eric and yourself appeared to agree that some keyrings should
> be inherited into child user namespaces.

Ummm...  If keys are effectively a per-user-namespace resource, then they
can't be shared between namespaces.  We could either duplicate all the keys
and keyrings, or we could just start afresh.  The latter is certainly the
easiest.

> I segragate them cleanly bc that appears to be the simplest thing to do
> especially given the use of i.e. lookup_by_name("uid.500").

Sounds reasonable.

> IMO it shouldn't be a big problem - userspace can always list keys it wants
> into a file, start a new user namespace, then re-read them out of the
> tempfile...

Not so.  You aren't necessarily permitted to read a key - the read function
has to be supported by the key type for a start, and then you have to pass all
the security checks.

David
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers

[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux