keys: make procfiles per-user-namespace
authorSerge E. Hallyn <serue@us.ibm.com>
Fri, 27 Feb 2009 00:28:04 +0000 (18:28 -0600)
committerJames Morris <jmorris@namei.org>
Fri, 27 Feb 2009 01:35:15 +0000 (12:35 +1100)
commit454804ab0302b354e35d992d08e53fe03313baaf
treee01a4928e19ac2e8318bc88d0b79970cccc60665
parent2ea190d0a006ce5218baa6e798512652446a605a
keys: make procfiles per-user-namespace

Restrict the /proc/keys and /proc/key-users output to keys
belonging to the same user namespace as the reading task.

We may want to make this more complicated - so that any
keys in a user-namespace which is belongs to the reading
task are also shown.  But let's see if anyone wants that
first.

Signed-off-by: Serge E. Hallyn <serue@us.ibm.com>
Acked-by: David Howells <dhowells@redhat.com>
Signed-off-by: James Morris <jmorris@namei.org>
security/keys/proc.c