summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2015-11-19 00:01:17 +0000
committerRich Felker <dalias@aerifal.cx>2016-01-26 18:30:30 -0500
commitaaa604052dce98cfb4cc39f561bbb739c69bd802 (patch)
tree7e4e4fd6f6815a7120a35fae33728c1505f495d3
parent8afd2a1d03de74f9e801bfbd2f15c6aab0fa1278 (diff)
downloadmusl-aaa604052dce98cfb4cc39f561bbb739c69bd802.tar.gz
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
-rw-r--r--include/sys/ptrace.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/sys/ptrace.h b/include/sys/ptrace.h
index a133e66a..bc385f8c 100644
--- a/include/sys/ptrace.h
+++ b/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