nix: use wrappers for geteuid and getegid

The nix crate offers thin wrappers around these functions which allow us
to get rid of our own libc wrappers, reducing the amount of code marked
`unsafe`.

Part of #12380
This commit is contained in:
Daniel Rainer
2026-01-20 18:19:51 +01:00
committed by Johannes Altmanninger
parent cce788388f
commit 1f0a7e7697
5 changed files with 24 additions and 22 deletions

View File

@@ -46,6 +46,7 @@ nix = { version = "0.30.1", default-features = false, features = [
"resource",
"signal",
"term",
"user",
] }
num-traits = "0.2.19"
once_cell = "1.19.0"