summaryrefslogtreecommitdiff
path: root/net/rose/sysctl_net_rose.c
diff options
context:
space:
mode:
authorSerge E. Hallyn <serue@us.ibm.com>2009-12-29 20:50:19 (GMT)
committerLinus Torvalds <torvalds@linux-foundation.org>2009-12-30 20:35:44 (GMT)
commit7ea6600148c265b1fd53e521022b1d7aec81d974 (patch)
treeaeb16e15ff5e6f88cc7137847fb5610377bf7395 /net/rose/sysctl_net_rose.c
parent9a7262a0563da6b91019156abf487bcdf1a41526 (diff)
downloadlinux-fsl-qoriq-7ea6600148c265b1fd53e521022b1d7aec81d974.tar.xz
generic_permission: MAY_OPEN is not write access
generic_permission was refusing CAP_DAC_READ_SEARCH-enabled processes from opening DAC-protected files read-only, because do_filp_open adds MAY_OPEN to the open mask. Ignore MAY_OPEN. After this patch, CAP_DAC_READ_SEARCH is again sufficient to open(fname, O_RDONLY) on a file to which DAC otherwise refuses us read permission. Reported-by: Mike Kazantsev <mk.fraggod@gmail.com> Signed-off-by: Serge E. Hallyn <serue@us.ibm.com> Tested-by: Mike Kazantsev <mk.fraggod@gmail.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'net/rose/sysctl_net_rose.c')
0 files changed, 0 insertions, 0 deletions