about summary refs log tree commit diff
path: root/include
diff options
context:
space:
mode:
authorSzabolcs Nagy <nsz@port70.net>2018-04-28 16:23:23 +0000
committerRich Felker <dalias@aerifal.cx>2018-06-19 13:25:33 -0400
commit0f7aa600f75205af243a67394fbb4fe41b5f679a (patch)
tree4f9c4f327d323f92a86ab33ebfabf675773d460f /include
parent3a81cbe64320795d69f11fd2300947d2b56b2e17 (diff)
downloadmusl-0f7aa600f75205af243a67394fbb4fe41b5f679a.tar.gz
musl-0f7aa600f75205af243a67394fbb4fe41b5f679a.tar.xz
musl-0f7aa600f75205af243a67394fbb4fe41b5f679a.zip
sys/ptrace.h: add PTRACE_SECCOMP_GET_METADATA from linux v4.16
to get seccomp state for checkpoint restore.
added in linux commit 26500475ac1b499d8636ff281311d633909f5d20

struct tag follows the glibc api and ptrace_peeksiginfo_args
got changed too accordingly.
Diffstat (limited to 'include')
-rw-r--r--include/sys/ptrace.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/sys/ptrace.h b/include/sys/ptrace.h
index d9d45408..f501ff08 100644
--- a/include/sys/ptrace.h
+++ b/include/sys/ptrace.h
@@ -40,6 +40,7 @@ extern "C" {
 #define PTRACE_GETSIGMASK 0x420a
 #define PTRACE_SETSIGMASK 0x420b
 #define PTRACE_SECCOMP_GET_FILTER 0x420c
+#define PTRACE_SECCOMP_GET_METADATA 0x420d
 
 #define PT_READ_I PTRACE_PEEKTEXT
 #define PT_READ_D PTRACE_PEEKDATA
@@ -86,12 +87,17 @@ extern "C" {
 
 #define PTRACE_PEEKSIGINFO_SHARED 1
 
-struct ptrace_peeksiginfo_args {
+struct __ptrace_peeksiginfo_args {
 	uint64_t off;
 	uint32_t flags;
 	int32_t nr;
 };
 
+struct __ptrace_seccomp_metadata {
+	uint64_t filter_off;
+	uint64_t flags;
+};
+
 long ptrace(int, ...);
 
 #ifdef __cplusplus