diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2017-08-11 06:33:55 +0200 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-08-14 22:46:46 +0200 |
commit | 2b7ea5b5b5799f2878ed454bb48032bed6d101d3 (patch) | |
tree | 5aaae1f8f90097ea54686faa783ac0e72b851e3f /certs | |
parent | seccomp: Sysctl to configure actions that are allowed to be logged (diff) | |
download | linux-2b7ea5b5b5799f2878ed454bb48032bed6d101d3.tar.xz linux-2b7ea5b5b5799f2878ed454bb48032bed6d101d3.zip |
seccomp: Selftest for detection of filter flag support
Userspace needs to be able to reliably detect the support of a filter
flag. A good way of doing that is by attempting to enter filter mode,
with the flag bit(s) in question set, and a NULL pointer for the args
parameter of seccomp(2). EFAULT indicates that the flag is valid and
EINVAL indicates that the flag is invalid.
This patch adds a selftest that can be used to test this method of
detection in userspace.
Signed-off-by: Tyler Hicks <tyhicks@canonical.com>
Signed-off-by: Kees Cook <keescook@chromium.org>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions