>From 9f06414a68af64fa1834e46ef59ac32d2b82aa11 Mon Sep 17 00:00:00 2001 From: Szabolcs Nagy Date: Sat, 28 Apr 2018 16:23:23 +0000 Subject: [PATCH 6/9] sys/ptrace.h: add PTRACE_SECCOMP_GET_METADATA from linux v4.16 to get seccomp state for checkpoint restore. added in linux commit 26500475ac1b499d8636ff281311d633909f5d20 --- include/sys/ptrace.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/sys/ptrace.h b/include/sys/ptrace.h index d9d45408..4eedbbb4 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 @@ -92,6 +93,11 @@ struct ptrace_peeksiginfo_args { int32_t nr; }; +struct seccomp_metadata { + uint64_t filter_off; + uint64_t flags; +}; + long ptrace(int, ...); #ifdef __cplusplus -- 2.16.3