aboutsummaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSerge E. Hallyn <[email protected]>2009-04-13 09:56:14 -0500
committerLinus Torvalds <[email protected]>2009-04-13 08:32:28 -0700
commit0ad30b8fd5fe798aae80df6344b415d8309342cc (patch)
treea62ffb310ab370df11a8fe2ba2995e952b6522be /net/unix/af_unix.c
parentd3ab02a7c51fcbceafe999a515cc8bc4f0d0cfee (diff)
add some long-missing capabilities to fs_mask
When POSIX capabilities were introduced during the 2.1 Linux cycle, the fs mask, which represents the capabilities which having fsuid==0 is supposed to grant, did not include CAP_MKNOD and CAP_LINUX_IMMUTABLE. However, before capabilities the privilege to call these did in fact depend upon fsuid==0. This patch introduces those capabilities into the fsmask, restoring the old behavior. See the thread starting at http://lkml.org/lkml/2009/3/11/157 for reference. Note that if this fix is deemed valid, then earlier kernel versions (2.4 and 2.2) ought to be fixed too. Changelog: [Mar 23] Actually delete old CAP_FS_SET definition... [Mar 20] Updated against J. Bruce Fields's patch Reported-by: Igor Zhbanov <[email protected]> Signed-off-by: Serge E. Hallyn <[email protected]> Cc: [email protected] Cc: J. Bruce Fields <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions