userns: Convert security/keys to the new userns infrastructure
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 8 Feb 2012 15:53:04 +0000 (07:53 -0800)
committerEric W. Biederman <ebiederm@xmission.com>
Fri, 14 Sep 2012 01:28:02 +0000 (18:28 -0700)
commit9a56c2db49e7349c7963f0ce66c1ef578d44ebd3
treede29b56483bb00efabca3ba35c7001cab2aab7be
parent5fce5e0bbd44263c36f58ad1113b599d06ed1978
userns: Convert security/keys to the new userns infrastructure

- Replace key_user ->user_ns equality checks with kuid_has_mapping checks.
- Use from_kuid to generate key descriptions
- Use kuid_t and kgid_t and the associated helpers instead of uid_t and gid_t
- Avoid potential problems with file descriptor passing by displaying
  keys in the user namespace of the opener of key status proc files.

Cc: linux-security-module@vger.kernel.org
Cc: keyrings@linux-nfs.org
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
include/linux/key.h
init/Kconfig
security/keys/internal.h
security/keys/key.c
security/keys/keyctl.c
security/keys/keyring.c
security/keys/permission.c
security/keys/proc.c
security/keys/process_keys.c
security/keys/request_key.c