Re: [PATCH 2/3] prctl_set_mm: Refactor checks from validate_prctl_map

2019-04-30 Thread Kirill Tkhai
On 30.04.2019 11:18, Michal Koutný wrote: > 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 perf

[PATCH 2/3] prctl_set_mm: Refactor checks from validate_prctl_map

2019-04-30 Thread Michal Koutný
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 n