summaryrefslogtreecommitdiffstats
path: root/include/linux/prctl.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/prctl.h')
-rw-r--r--include/linux/prctl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/prctl.h b/include/linux/prctl.h
index 7ddc7f1b480..e0cfec2490a 100644
--- a/include/linux/prctl.h
+++ b/include/linux/prctl.h
@@ -114,4 +114,14 @@
# define PR_SET_MM_START_BRK 6
# define PR_SET_MM_BRK 7
+/*
+ * Set specific pid that is allowed to ptrace the current task.
+ * A value of 0 mean "no process".
+ */
+#define PR_SET_PTRACER 0x59616d61
+# define PR_SET_PTRACER_ANY ((unsigned long)-1)
+
+#define PR_SET_CHILD_SUBREAPER 36
+#define PR_GET_CHILD_SUBREAPER 37
+
#endif /* _LINUX_PRCTL_H */