userns: Kill nsown_capable it makes the wrong thing easy
authorEric W. Biederman <ebiederm@xmission.com>
Wed, 20 Mar 2013 19:49:49 +0000 (12:49 -0700)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 31 Aug 2013 06:44:11 +0000 (23:44 -0700)
commitc7b96acf1456ef127fef461fcfedb54b81fecfbb
tree1cc9387d23e96685453e545bda6d5a5efea8fa63
parentf54fb863c6bbcbafdfc332b4a4260abb5a002137
userns:  Kill nsown_capable it makes the wrong thing easy

nsown_capable is a special case of ns_capable essentially for just CAP_SETUID and
CAP_SETGID.  For the existing users it doesn't noticably simplify things and
from the suggested patches I have seen it encourages people to do the wrong
thing.  So remove nsown_capable.

Acked-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
12 files changed:
fs/namespace.c
fs/open.c
include/linux/capability.h
ipc/namespace.c
kernel/capability.c
kernel/groups.c
kernel/pid_namespace.c
kernel/sys.c
kernel/uid16.c
kernel/utsname.c
net/core/net_namespace.c
net/core/scm.c