add-64-bit-capability-support-to-the-kernel
commit2817da6734a53d904db9b700cf8c69332ff8fec2
authorAndrew Morgan <morgan@kernel.org>
Sat, 10 Nov 2007 00:26:32 +0000 (10 00:26 +0000)
committerMatthias Urlichs <smurf@hera.kernel.org>
Wed, 14 Nov 2007 11:28:16 +0000 (14 11:28 +0000)
treebd2a5afd3a2acb33c9f0233f6d82ea20780aca1c
parent85fcaa6bcf07e911c72bf6c399920b3eb3ceb706
add-64-bit-capability-support-to-the-kernel

The patch supports legacy (32-bit) capability userspace, and where possible
translates 32-bit capabilities to/from userspace and the VFS to 64-bit
kernel space capabilities.  If a capability set cannot be compressed into
32-bits for consumption by user space, the system call fails, with -ERANGE.

FWIW libcap-2.00 supports this change (and earlier capability formats)

 http://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/

Signed-off-by: Andrew G. Morgan <morgan@kernel.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: Chris Wright <chrisw@sous-sol.org>
Cc: James Morris <jmorris@namei.org>
Cc: Casey Schaufler <casey@schaufler-ca.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/nfsd/auth.c
fs/proc/array.c
include/linux/capability.h
kernel/capability.c
mm/oom_kill.c
security/commoncap.c
security/dummy.c