aboutsummaryrefslogtreecommitdiff
path: root/net/bluetooth/rfcomm/core.c
diff options
context:
space:
mode:
authorSerge E. Hallyn <serue@us.ibm.com>2009-12-29 14:50:19 -0600
committerGreg Kroah-Hartman <gregkh@suse.de>2010-01-06 15:05:26 -0800
commit84d330ec80dc467baf6cb393d9c1ee006d1c024a (patch)
tree56841192135b7a7fd764cddb5e79885f1032373b /net/bluetooth/rfcomm/core.c
parent3815270b3107d31c8b7bd69461f0bb3c350ee25c (diff)
generic_permission: MAY_OPEN is not write access
commit 7ea6600148c265b1fd53e521022b1d7aec81d974 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net/bluetooth/rfcomm/core.c')
0 files changed, 0 insertions, 0 deletions