add new PTRACE_O_SUSPEND_SECCOMP ptrace option
authorSzabolcs Nagy <nsz@port70.net>
Thu, 19 Nov 2015 00:01:17 +0000 (00:01 +0000)
committerRich Felker <dalias@aerifal.cx>
Tue, 26 Jan 2016 23:30:30 +0000 (18:30 -0500)
allows a ptracer process to disable/enable seccomp filters of the
traced process, useful for checkpoint/restore, new in v4.3 commit
13c4a90119d28cfcb6b5bdd820c233b86c2b0237

include/sys/ptrace.h

index a133e66a1764441b217bf20f8233926967daa9e3..bc385f8c9dd2f8e1c77f92c6c9c41ca4c6bce4b8 100644 (file)
@@ -72,7 +72,8 @@ extern "C" {
 #define PTRACE_O_TRACEEXIT      0x00000040
 #define PTRACE_O_TRACESECCOMP   0x00000080
 #define PTRACE_O_EXITKILL       0x00100000
-#define PTRACE_O_MASK           0x001000ff
+#define PTRACE_O_SUSPEND_SECCOMP 0x00200000
+#define PTRACE_O_MASK           0x003000ff
 
 #define PTRACE_EVENT_FORK 1
 #define PTRACE_EVENT_VFORK 2