Skip to content

Commit 795a6d6

Browse files
committed

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
@@ -4079,6 +4079,9 @@ fn test_linux(target: &str) {
40794079
// FIXME(linux): Requires >= 6.12 kernel headers.
40804080
"dmabuf_cmsg" | "dmabuf_token" => true,
40814081

4082+
// FIXME(linux): Requires >= 6.4 kernel headers.
4083+
"ptrace_sud_config" => true,
4084+
40824085
_ => false,
40834086
}
40844087
});
@@ -4503,6 +4506,8 @@ fn test_linux(target: &str) {
45034506
| "SO_DEVMEM_DONTNEED"
45044507
| "SCM_DEVMEM_LINEAR"
45054508
| "SCM_DEVMEM_DMABUF" => true,
4509+
// FIXME(linux): Requires >= 6.4 kernel headers.
4510+
"PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG" | "PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG" => true,
45064511

45074512
_ => false,
45084513
}

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
@@ -310,6 +310,13 @@ s! {
310310
pub u: __c_anonymous_ptrace_syscall_info_data,
311311
}
312312

313+
pub struct ptrace_sud_config {
314+
pub mode: crate::__u64,
315+
pub selector: crate::__u64,
316+
pub offset: crate::__u64,
317+
pub len: crate::__u64,
318+
}
319+
313320
pub struct iocb {
314321
pub aio_data: crate::__u64,
315322
#[cfg(target_endian = "little")]
@@ -915,6 +922,8 @@ pub const PTRACE_SYSCALL_INFO_NONE: crate::__u8 = 0;
915922
pub const PTRACE_SYSCALL_INFO_ENTRY: crate::__u8 = 1;
916923
pub const PTRACE_SYSCALL_INFO_EXIT: crate::__u8 = 2;
917924
pub const PTRACE_SYSCALL_INFO_SECCOMP: crate::__u8 = 3;
925+
pub const PTRACE_SET_SYSCALL_USER_DISPATCH_CONFIG: crate::__u8 = 0x4210;
926+
pub const PTRACE_GET_SYSCALL_USER_DISPATCH_CONFIG: crate::__u8 = 0x4211;
918927

919928
// linux/fs.h
920929

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)