Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

android PTRACE_SECCOMP_GET_METADATA flag addition #3293

Merged
merged 1 commit into from Jul 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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