keys: consider user namespace in key_permission
authorSerge E. Hallyn <serue@us.ibm.com>
Fri, 27 Feb 2009 00:27:47 +0000 (18:27 -0600)
committerJames Morris <jmorris@namei.org>
Fri, 27 Feb 2009 01:35:09 +0000 (12:35 +1100)
commit8ff3bc3138a400294ee9e126ac75fc9a9fae4e0b
treef1e2f21f17268cb9a88446da2f1ced9dbccd5138
parent1d1e97562e5e2ac60fb7b25437ba619f95f67fab
keys: consider user namespace in key_permission

If a key is owned by another user namespace, then treat the
key as though it is owned by both another uid and gid.

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