mirror of
https://git.musl-libc.org/git/musl
synced 2025-01-09 00:02:17 +03:00
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.
This commit is contained in:
parent
3a81cbe643
commit
0f7aa600f7
@ -40,6 +40,7 @@ extern "C" {
|
|||||||
#define PTRACE_GETSIGMASK 0x420a
|
#define PTRACE_GETSIGMASK 0x420a
|
||||||
#define PTRACE_SETSIGMASK 0x420b
|
#define PTRACE_SETSIGMASK 0x420b
|
||||||
#define PTRACE_SECCOMP_GET_FILTER 0x420c
|
#define PTRACE_SECCOMP_GET_FILTER 0x420c
|
||||||
|
#define PTRACE_SECCOMP_GET_METADATA 0x420d
|
||||||
|
|
||||||
#define PT_READ_I PTRACE_PEEKTEXT
|
#define PT_READ_I PTRACE_PEEKTEXT
|
||||||
#define PT_READ_D PTRACE_PEEKDATA
|
#define PT_READ_D PTRACE_PEEKDATA
|
||||||
@ -86,12 +87,17 @@ extern "C" {
|
|||||||
|
|
||||||
#define PTRACE_PEEKSIGINFO_SHARED 1
|
#define PTRACE_PEEKSIGINFO_SHARED 1
|
||||||
|
|
||||||
struct ptrace_peeksiginfo_args {
|
struct __ptrace_peeksiginfo_args {
|
||||||
uint64_t off;
|
uint64_t off;
|
||||||
uint32_t flags;
|
uint32_t flags;
|
||||||
int32_t nr;
|
int32_t nr;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
struct __ptrace_seccomp_metadata {
|
||||||
|
uint64_t filter_off;
|
||||||
|
uint64_t flags;
|
||||||
|
};
|
||||||
|
|
||||||
long ptrace(int, ...);
|
long ptrace(int, ...);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
Reference in New Issue
Block a user