diff options
| author | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:48:48 +1100 |
|---|---|---|
| committer | James Morris <james.l.morris@oracle.com> | 2017-11-29 12:48:48 +1100 |
| commit | 26025bf58b9fe3806ce4f92600e96a2c214c0d9c (patch) | |
| tree | e5b9fbb6661848e22324fc70678bbd432bae2688 /include/uapi | |
| parent | cf40a76e7d5874bb25f4404eecc58a2e033af885 (diff) | |
| parent | 26500475ac1b499d8636ff281311d633909f5d20 (diff) | |
Merge tag 'seccomp-next' of https://git.kernel.org/pub/scm/linux/kernel/git/kees/linux into next-seccomp
add support for retrieving seccomp filter metadata (Tycho Andersen)
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/ptrace.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/uapi/linux/ptrace.h b/include/uapi/linux/ptrace.h index e3939e00980b..e46d82b91166 100644 --- a/include/uapi/linux/ptrace.h +++ b/include/uapi/linux/ptrace.h @@ -66,6 +66,12 @@ struct ptrace_peeksiginfo_args { #define PTRACE_SETSIGMASK 0x420b #define PTRACE_SECCOMP_GET_FILTER 0x420c +#define PTRACE_SECCOMP_GET_METADATA 0x420d + +struct seccomp_metadata { + unsigned long filter_off; /* Input: which filter */ + unsigned int flags; /* Output: filter's flags */ +}; /* Read signals from a shared (process wide) queue */ #define PTRACE_PEEKSIGINFO_SHARED (1 << 0) |
