[LTP] [PATCH] syscalls/userfaultfd01: Always require CAP_SYS_PTRACE

Petr Vorel pvorel@suse.cz
Tue Jan 21 06:24:47 CET 2020


Hi Xu,

> Since commit cefdca0a86be ("userfaultfd/sysctl: add vm.unprivileged_userfaultfd").
> , it adds a global sysctl knob "vm.unprivileged_userfaultfd" to control whether
> unprivileged users can use the userfaultfd system calls.  Set this to 1 to allow
> unprivileged users to use the userfaultfd system calls, or set this to 0 to
> restrict userfaultfd to only privileged users (with SYS_CAP_PTRACE capability).The
> default value is 1. In order to use userfaultfd always, require CAP_SYS_PTRACE.

> Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Good idea, thanks!

Kind regards,
Petr


More information about the ltp mailing list