Skip to content

Commit f7650ca

Browse files
committed
Auto merge of #3293 - devnexen:ptrace_seccomp_metadata, r=JohnTitor
android PTRACE_SECCOMP_GET_METADATA flag addition
2 parents 1a612bb + 5f9764f commit f7650ca

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/android.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1890,6 +1890,7 @@ PTRACE_PEEKUSER
18901890
PTRACE_POKEDATA
18911891
PTRACE_POKETEXT
18921892
PTRACE_POKEUSER
1893+
PTRACE_SECCOMP_GET_METADATA
18931894
PTRACE_SETOPTIONS
18941895
PTRACE_SETSIGINFO
18951896
PTRACE_SINGLESTEP
@@ -3502,6 +3503,7 @@ sched_setparam
35023503
sched_setscheduler
35033504
sched_yield
35043505
seccomp_data
3506+
seccomp_metadata
35053507
seekdir
35063508
select
35073509
sem_close

src/unix/linux_like/android/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,11 @@ s! {
350350
pub args: [::__u64; 6],
351351
}
352352

353+
pub struct seccomp_metadata {
354+
pub filter_off: ::__u64,
355+
pub flags: ::__u64,
356+
}
357+
353358
pub struct ptrace_peeksiginfo_args {
354359
pub off: ::__u64,
355360
pub flags: ::__u32,
@@ -1522,6 +1527,7 @@ pub const PTRACE_GETSIGINFO: ::c_int = 0x4202;
15221527
pub const PTRACE_SETSIGINFO: ::c_int = 0x4203;
15231528
pub const PTRACE_GETREGSET: ::c_int = 0x4204;
15241529
pub const PTRACE_SETREGSET: ::c_int = 0x4205;
1530+
pub const PTRACE_SECCOMP_GET_METADATA: ::c_int = 0x420d;
15251531

15261532
pub const PTRACE_EVENT_STOP: ::c_int = 128;
15271533

0 commit comments

Comments
 (0)