mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
deps(rustix): enable use-libc to route syscalls through glibc
Without use-libc, rustix uses direct inline assembly syscalls, bypassing glibc entirely. On a glibc-based system like Debian, this can break LD_PRELOAD interposition, sanitizers, and miss glibc optimizations like the getpid() cache.
This commit is contained in:
+5
-3
@@ -450,9 +450,11 @@ rstest = "0.26.0"
|
||||
rstest_reuse = "0.7.0"
|
||||
rustc-hash = "2.1.1"
|
||||
rust-ini = "0.21.0"
|
||||
# binary name of coreutils can be hijacked by overriding getauxval via LD_PRELOAD
|
||||
# So we use param and avoid libc backend
|
||||
rustix = { version = "1.1.4", features = ["param"] }
|
||||
# use-libc: route syscalls through glibc instead of direct inline assembly,
|
||||
# ensuring compatibility with LD_PRELOAD, sanitizers, and glibc optimizations (e.g. getpid cache)
|
||||
rustix = { version = "1.1.4", default-features = false, features = [
|
||||
"use-libc",
|
||||
] }
|
||||
same-file = "1.0.6"
|
||||
self_cell = "1.0.4"
|
||||
selinux = "0.6"
|
||||
|
||||
Reference in New Issue
Block a user