Please sign in to comment.
prctl: use CAP_SYS_RESOURCE for PR_SET_MM option
CAP_SYS_ADMIN is already overloaded left and right, so to have more fine-grained access control use CAP_SYS_RESOURCE here. The CAP_SYS_RESOUCE is chosen because this prctl option allows a current process to adjust some fields of memory map descriptor which rather represents what the process owns: pointers to code, data, stack segments, command line, auxiliary vector data and etc. Suggested-by: Michael Kerrisk <email@example.com> Acked-by: Kees Cook <firstname.lastname@example.org> Acked-by: Michael Kerrisk <email@example.com> Cc: Pavel Emelyanov <firstname.lastname@example.org> Cc: Tejun Heo <email@example.com> Cc: Oleg Nesterov <firstname.lastname@example.org> Cc: Paul Bolle <email@example.com> Cc: KOSAKI Motohiro <firstname.lastname@example.org> Signed-off-by: Cyrill Gorcunov <email@example.com> Signed-off-by: Andrew Morton <firstname.lastname@example.org> Signed-off-by: Linus Torvalds <email@example.com>
- Loading branch information...