Skip to content

Commit

Permalink
android PTRACE_SECCOMP_GET_METADATA flag addition
Browse files Browse the repository at this point in the history
  • Loading branch information
devnexen committed Jul 7, 2023
1 parent 30a7a9f commit a210d52
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc-test/semver/android.txt
Expand Up @@ -1890,6 +1890,7 @@ PTRACE_PEEKUSER
PTRACE_POKEDATA
PTRACE_POKETEXT
PTRACE_POKEUSER
PTRACE_SECCOMP_GET_METADATA
PTRACE_SETOPTIONS
PTRACE_SETSIGINFO
PTRACE_SINGLESTEP
Expand Down Expand Up @@ -3502,6 +3503,7 @@ sched_setparam
sched_setscheduler
sched_yield
seccomp_data
seccomp_metadata
seekdir
select
sem_close
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/android/mod.rs
Expand Up @@ -350,6 +350,11 @@ s! {
pub args: [::__u64; 6],
}

pub struct seccomp_metadata {
pub filter_off: ::__u64,
pub flags: ::__u64,
}

pub struct ptrace_peeksiginfo_args {
pub off: ::__u64,
pub flags: ::__u32,
Expand Down Expand Up @@ -1522,6 +1527,7 @@ pub const PTRACE_GETSIGINFO: ::c_int = 0x4202;
pub const PTRACE_SETSIGINFO: ::c_int = 0x4203;
pub const PTRACE_GETREGSET: ::c_int = 0x4204;
pub const PTRACE_SETREGSET: ::c_int = 0x4205;
pub const PTRACE_SECCOMP_GET_METADATA: ::c_int = 0x420d

pub const PTRACE_EVENT_STOP: ::c_int = 128;

Expand Down

0 comments on commit a210d52

Please sign in to comment.