diff options
| author | Serge E. Hallyn <[email protected]> | 2009-12-29 14:50:19 -0600 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2009-12-30 12:35:44 -0800 |
| commit | 7ea6600148c265b1fd53e521022b1d7aec81d974 (patch) | |
| tree | aeb16e15ff5e6f88cc7137847fb5610377bf7395 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | 9a7262a0563da6b91019156abf487bcdf1a41526 (diff) | |
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 <[email protected]>
Signed-off-by: Serge E. Hallyn <[email protected]>
Tested-by: Mike Kazantsev <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions