瀏覽代碼

add new PTRACE_O_SUSPEND_SECCOMP ptrace option

allows a ptracer process to disable/enable seccomp filters of the
traced process, useful for checkpoint/restore, new in v4.3 commit
13c4a90119d28cfcb6b5bdd820c233b86c2b0237
Szabolcs Nagy 9 年之前
父節點
當前提交
aaa604052d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      include/sys/ptrace.h

+ 2 - 1
include/sys/ptrace.h

@@ -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