History

Merge branch 'next-seccomp' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security

Pull seccomp updates from James Morris: "Add support for retrieving seccomp metadata" * 'next-seccomp' of git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security: ptrace, seccomp: add support for retrieving seccomp metadata seccomp: hoist out filter resolving logic

Linus Torvalds committed 8 years ago

Commit 3dbc4f52 parents ae0cb7b 26025bf4 files · +94 −30Browse files

Showing the changes to include/uapi/linux (1 of 4 files). Show all

Unified · Split

include/uapi/linux/ptrace.h+6−0
@@ -66,6 +66,12 @@ struct ptrace_peeksiginfo_args { · 65 unmodified lines
6666 #define PTRACE_SETSIGMASK 0x420b
6767
6868 #define PTRACE_SECCOMP_GET_FILTER 0x420c
69+#define PTRACE_SECCOMP_GET_METADATA 0x420d
70+
71+struct seccomp_metadata {
72+ unsigned long filter_off; /* Input: which filter */
73+ unsigned int flags; /* Output: filter's flags */
74+};
6975
7076 /* Read signals from a shared (process wide) queue */
7177 #define PTRACE_PEEKSIGINFO_SHARED (1 << 0)