aboutsummaryrefslogtreecommitdiffstats
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorJames Morris <james.l.morris@oracle.com>2017-11-29 12:48:48 +1100
committerJames Morris <james.l.morris@oracle.com>2017-11-29 12:48:48 +1100
commit26025bf58b9fe3806ce4f92600e96a2c214c0d9c (patch)
treee5b9fbb6661848e22324fc70678bbd432bae2688 /include/uapi/linux
parentcf40a76e7d5874bb25f4404eecc58a2e033af885 (diff)
parent26500475ac1b499d8636ff281311d633909f5d20 (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/linux')
-rw-r--r--include/uapi/linux/ptrace.h6
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)

Privacy Policy