add new PTRACE_SECCOMP_GET_FILTER ptrace command
authorSzabolcs Nagy <nsz@port70.net>
Sun, 24 Jan 2016 04:48:20 +0000 (04:48 +0000)
committerRich Felker <dalias@aerifal.cx>
Tue, 26 Jan 2016 23:31:17 +0000 (18:31 -0500)
allows the tracer to dump the bpf seccomp filters of the tracee,
new in linux v4.4, commit f8e529ed941ba2bbcbf310b575d968159ce7e895

include/sys/ptrace.h

index bc385f8..d9d4540 100644 (file)
@@ -39,6 +39,7 @@ extern "C" {
 #define PTRACE_PEEKSIGINFO 0x4209
 #define PTRACE_GETSIGMASK 0x420a
 #define PTRACE_SETSIGMASK 0x420b
+#define PTRACE_SECCOMP_GET_FILTER 0x420c
 
 #define PT_READ_I PTRACE_PEEKTEXT
 #define PT_READ_D PTRACE_PEEKDATA