mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-07-03 01:38:30 +00:00
Add PTRACE_SECCOMP_GET_METADATA
(#882)
see linux commit: 26500475ac1b499d8636ff281311d633909f5d20 ptrace, seccomp: add support for retrieving seccomp metadata
This commit is contained in:
parent
610e0d95cb
commit
4f517503e4
4 changed files with 55 additions and 49 deletions
|
@ -51,6 +51,7 @@ const char *(DescribePtrace)(char buf[12], int x) {
|
|||
if (x == PTRACE_ATTACH) return "PTRACE_ATTACH";
|
||||
if (x == PTRACE_SEIZE) return "PTRACE_SEIZE";
|
||||
if (x == PTRACE_SECCOMP_GET_FILTER) return "PTRACE_SECCOMP_GET_FILTER";
|
||||
if (x == PTRACE_SECCOMP_GET_METADATA) return "PTRACE_SECCOMP_GET_METADATA";
|
||||
if (x == PTRACE_DETACH) return "PTRACE_DETACH";
|
||||
FormatInt32(buf, x);
|
||||
return buf;
|
||||
|
|
|
@ -765,6 +765,7 @@ syscon ptrace PTRACE_INTERRUPT 0x4207 0x4207 -1 -1 -1 -1 -1 -1
|
|||
syscon ptrace PTRACE_LISTEN 0x4208 0x4208 -1 -1 -1 -1 -1 -1
|
||||
syscon ptrace PTRACE_PEEKSIGINFO 0x4209 0x4209 -1 -1 -1 -1 -1 -1
|
||||
syscon ptrace PTRACE_SECCOMP_GET_FILTER 0x420c 0x420c -1 -1 -1 -1 -1 -1
|
||||
syscon ptrace PTRACE_SECCOMP_GET_METADATA 0x420d 0x420d -1 -1 -1 -1 -1 -1
|
||||
syscon ptrace PTRACE_SEIZE 0x4206 0x4206 -1 -1 -1 -1 -1 -1
|
||||
syscon ptrace PTRACE_SETREGSET 0x4205 0x4205 -1 -1 -1 -1 -1 -1
|
||||
syscon ptrace PTRACE_SETSIGMASK 0x420b 0x420b -1 -1 -1 -1 -1 -1
|
||||
|
|
2
libc/sysv/consts/PTRACE_SECCOMP_GET_METADATA.S
Normal file
2
libc/sysv/consts/PTRACE_SECCOMP_GET_METADATA.S
Normal file
|
@ -0,0 +1,2 @@
|
|||
#include "libc/sysv/consts/syscon.internal.h"
|
||||
.syscon ptrace,PTRACE_SECCOMP_GET_METADATA,0x420d,0x420d,-1,-1,-1,-1,-1,-1
|
|
@ -32,6 +32,7 @@ extern const int PTRACE_INTERRUPT;
|
|||
extern const int PTRACE_LISTEN;
|
||||
extern const int PTRACE_PEEKSIGINFO;
|
||||
extern const int PTRACE_SECCOMP_GET_FILTER;
|
||||
extern const int PTRACE_SECCOMP_GET_METADATA;
|
||||
extern const int PTRACE_SEIZE;
|
||||
extern const int PTRACE_SETREGSET;
|
||||
extern const int PTRACE_SETSIGMASK;
|
||||
|
@ -85,6 +86,7 @@ COSMOPOLITAN_C_END_
|
|||
#define PTRACE_LISTEN PTRACE_LISTEN
|
||||
#define PTRACE_PEEKSIGINFO PTRACE_PEEKSIGINFO
|
||||
#define PTRACE_SECCOMP_GET_FILTER PTRACE_SECCOMP_GET_FILTER
|
||||
#define PTRACE_SECCOMP_GET_METADATA PTRACE_SECCOMP_GET_METADATA
|
||||
#define PTRACE_SEIZE PTRACE_SEIZE
|
||||
#define PTRACE_SETREGSET PTRACE_SETREGSET
|
||||
#define PTRACE_SETSIGMASK PTRACE_SETSIGMASK
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue