ptrace, seccomp: add support for retrieving seccomp metadata
[linux-block.git] / include / uapi / linux / ptrace.h
index e3939e00980bb7976b0192a55581df2e8e005b15..e46d82b911669700662e5e4ec321b26db625f150 100644 (file)
@@ -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)