summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorTycho Andersen <tycho@tycho.ws>2019-01-19 03:12:16 +0300
committerShuah Khan <shuah@kernel.org>2019-02-13 18:48:12 +0300
commitc7140706cb8affe0155c62b13c59940597825bac (patch)
tree9bf78cc13a5cf5262371e57fde3d96adbcb098d0 /drivers
parent3aa415dd2128e478ea3225b59308766de0e94d6b (diff)
downloadlinux-c7140706cb8affe0155c62b13c59940597825bac.tar.xz
selftests: set NO_NEW_PRIVS bit in seccomp user tests
seccomp() doesn't allow users who aren't root in their userns to attach filters unless they have the nnp bit set, so let's set it so that these tests can pass when run as an unprivileged user. This idea stolen from the other seccomp tests, which use this trick :) Signed-off-by: Tycho Andersen <tycho@tycho.ws> Acked-by: Kees Cook <keescook@chromium.org> Signed-off-by: Shuah Khan <shuah@kernel.org>
Diffstat (limited to 'drivers')
0 files changed, 0 insertions, 0 deletions