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
Showing the changes to include/uapi/linux (1 of 4 files). Show all
Unified · Split
| @@ -66,6 +66,12 @@ struct ptrace_peeksiginfo_args { · 65 unmodified lines | ||
| 66 | 66 | #define PTRACE_SETSIGMASK 0x420b |
| 67 | 67 | |
| 68 | 68 | #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 | +}; | |
| 69 | 75 | |
| 70 | 76 | /* Read signals from a shared (process wide) queue */ |
| 71 | 77 | #define PTRACE_PEEKSIGINFO_SHARED (1 << 0) |