keys: skip keys from another user namespace
authorSerge E. Hallyn <serue@us.ibm.com>
Fri, 27 Feb 2009 00:27:55 +0000 (18:27 -0600)
committerJames Morris <jmorris@namei.org>
Fri, 27 Feb 2009 01:35:12 +0000 (12:35 +1100)
commit2ea190d0a006ce5218baa6e798512652446a605a
tree1d8612678355c77d8ea9f316ef6ce7d80ee6d613
parent8ff3bc3138a400294ee9e126ac75fc9a9fae4e0b
keys: skip keys from another user namespace

When listing keys, do not return keys belonging to the
same uid in another user namespace.  Otherwise uid 500
in another user namespace will return keyrings called
uid.500 for another user namespace.

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/keyring.c