diff options
author | Sargun Dhillon <sargun@sargun.me> | 2020-06-03 04:10:44 +0300 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2020-07-15 02:30:22 +0300 |
commit | c97aedc52dce4c87d4c44de4e6af941cd102600c (patch) | |
tree | b75804643e37ad7017ccf6a1a37834c78cd1ed00 /kernel/exit.c | |
parent | 7cf97b12545503992020796c74bd84078eb39299 (diff) | |
download | linux-c97aedc52dce4c87d4c44de4e6af941cd102600c.tar.xz |
selftests/seccomp: Test SECCOMP_IOCTL_NOTIF_ADDFD
Test whether we can add file descriptors in response to notifications.
This injects the file descriptors via notifications, and then uses kcmp
to determine whether or not it has been successful.
It also includes some basic sanity checking for arguments.
Signed-off-by: Sargun Dhillon <sargun@sargun.me>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Chris Palmer <palmer@google.com>
Cc: Christian Brauner <christian.brauner@ubuntu.com>
Cc: Jann Horn <jannh@google.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Robert Sesek <rsesek@google.com>
Cc: Tycho Andersen <tycho@tycho.ws>
Cc: Matt Denton <mpdenton@google.com>
Cc: linux-fsdevel@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Link: https://lore.kernel.org/r/20200603011044.7972-5-sargun@sargun.me
Co-developed-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'kernel/exit.c')
0 files changed, 0 insertions, 0 deletions