diff options
| author | Miklos Szeredi <mszeredi@redhat.com> | 2020-12-14 17:26:14 +0300 |
|---|---|---|
| committer | Miklos Szeredi <mszeredi@redhat.com> | 2020-12-14 17:26:14 +0300 |
| commit | c846af050f944d584f28bc0de310383003c8096d (patch) | |
| tree | 32070dcfc93dd4164928c5d7056836f5c420bfc7 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 3078d85c9a1099405a0463c4d112ba97ee5bd217 (diff) | |
| download | linux-c846af050f944d584f28bc0de310383003c8096d.tar.xz | |
ovl: check privs before decoding file handle
CAP_DAC_READ_SEARCH is required by open_by_handle_at(2) so check it in
ovl_decode_real_fh() as well to prevent privilege escalation for
unprivileged overlay mounts.
[Amir] If the mounter is not capable in init ns, ovl_check_origin() and
ovl_verify_index() will not function as expected and this will break index
and nfs export features. So check capability in ovl_can_decode_fh(), to
auto disable those features.
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions
