Skip to content

Commit 1ff2f21

Browse files
devnexentgross35
authored andcommitted
1 parent 55c58c9 commit 1ff2f21

File tree

4 files changed

+19
-2
lines changed

4 files changed

+19
-2
lines changed

libc-test/build.rs

+5
Original file line numberDiff line numberDiff line change
@@ -4198,6 +4198,9 @@ fn test_linux(target: &str) {
41984198
// FIXME(linux): Requires >= 6.12 kernel headers.
41994199
"dmabuf_cmsg" | "dmabuf_token" => true,
42004200

4201+
// FIXME(linux): Requires >= 6.4 kernel headers.
4202+
"ptrace_sud_config" => true,
4203+
42014204
_ => false,
42024205
}
42034206
});
@@ -4622,6 +4625,8 @@ fn test_linux(target: &str) {
46224625
| "SO_DEVMEM_DONTNEED"
46234626
| "SCM_DEVMEM_LINEAR"
46244627
| "SCM_DEVMEM_DMABUF" => true,
4628+
// FIXME(linux): Requires >= 6.4 kernel headers.
4629+
"PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG" | "PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG" => true,
46254630

46264631
_ => false,
46274632
}

libc-test/semver/linux-gnu.txt

+3
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ PR_SET_VMA
348348
PR_SET_VMA_ANON_NAME
349349
PTHREAD_MUTEX_ADAPTIVE_NP
350350
PTRACE_GET_SYSCALL_INFO
351+
PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG
352+
PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG
351353
PTRACE_SYSCALL_INFO_ENTRY
352354
PTRACE_SYSCALL_INFO_EXIT
353355
PTRACE_SYSCALL_INFO_NONE
@@ -652,6 +654,7 @@ pthread_rwlockattr_getkind_np
652654
pthread_rwlockattr_getpshared
653655
pthread_rwlockattr_setkind_np
654656
ptrace_peeksiginfo_args
657+
ptrace_sud_config
655658
ptrace_syscall_info
656659
putgrent
657660
putpwent

src/unix/linux_like/linux/gnu/mod.rs

+9
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,13 @@ s! {
332332
pub u: __c_anonymous_ptrace_syscall_info_data,
333333
}
334334

335+
pub struct ptrace_sud_config {
336+
pub mode: crate::__u64,
337+
pub selector: crate::__u64,
338+
pub offset: crate::__u64,
339+
pub len: crate::__u64,
340+
}
341+
335342
pub struct iocb {
336343
pub aio_data: crate::__u64,
337344
#[cfg(target_endian = "little")]
@@ -933,6 +940,8 @@ pub const PTRACE_SYSCALL_INFO_NONE: crate::__u8 = 0;
933940
pub const PTRACE_SYSCALL_INFO_ENTRY: crate::__u8 = 1;
934941
pub const PTRACE_SYSCALL_INFO_EXIT: crate::__u8 = 2;
935942
pub const PTRACE_SYSCALL_INFO_SECCOMP: crate::__u8 = 3;
943+
pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: crate::__u8 = 0x4210;
944+
pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: crate::__u8 = 0x4211;
936945

937946
// linux/fs.h
938947

src/unix/solarish/solaris.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use crate::prelude::*;
22
use crate::{
3-
exit_status, off_t, NET_MAC_AWARE, NET_MAC_AWARE_INHERIT, PRIV_AWARE_RESET, PRIV_DEBUG,
4-
PRIV_PFEXEC, PRIV_XPOLICY, termios,
3+
exit_status, off_t, termios, NET_MAC_AWARE, NET_MAC_AWARE_INHERIT, PRIV_AWARE_RESET,
4+
PRIV_DEBUG, PRIV_PFEXEC, PRIV_XPOLICY,
55
};
66

77
pub type door_attr_t = c_uint;

0 commit comments

Comments
 (0)