diff options
author | Tyler Hicks <tyhicks@canonical.com> | 2017-08-11 04:33:55 +0000 |
---|---|---|
committer | Kees Cook <keescook@chromium.org> | 2017-08-14 13:46:46 -0700 |
commit | 2b7ea5b5b5799f2878ed454bb48032bed6d101d3 (patch) | |
tree | 5aaae1f8f90097ea54686faa783ac0e72b851e3f /kernel/seccomp.c | |
parent | 0ddec0fc8900201c0897b87b762b7c420436662f (diff) |
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 'kernel/seccomp.c')
0 files changed, 0 insertions, 0 deletions