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:
Sylvestre Ledru
2026-03-31 09:01:15 +02:00
parent 0ab7479f5f
commit 27bfad7694
+5 -3
View File
@@ -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"