diff options
author | Michal Koutný <[email protected]> | 2019-05-31 22:30:16 -0700 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2019-06-01 15:51:31 -0700 |
commit | 11bbd8b416f8abf40900dc5041152892f873d915 (patch) | |
tree | be77f2acea45a1f90c49838048b4c931f688a67a /scripts/gdb/linux/utils.py | |
parent | 8856ae4df3e9b5295ea2da7ad3b00796386454ec (diff) |
prctl_set_mm: refactor checks from validate_prctl_map
Despite comment of validate_prctl_map claims there are no capability
checks, it is not completely true since commit 4d28df6152aa ("prctl: Allow
local CAP_SYS_ADMIN changing exe_file"). Extract the check out of the
function and make the function perform purely arithmetic checks.
This patch should not change any behavior, it is mere refactoring for
following patch.
[[email protected]: coding style fixes]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Michal Koutný <[email protected]>
Reviewed-by: Kirill Tkhai <[email protected]>
Reviewed-by: Cyrill Gorcunov <[email protected]>
Cc: Kirill Tkhai <[email protected]>
Cc: Laurent Dufour <[email protected]>
Cc: Mateusz Guzik <[email protected]>
Cc: Michal Hocko <[email protected]>
Cc: Yang Shi <[email protected]>
Cc: Konstantin Khlebnikov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions