coreutils
coreutils copied to clipboard
chroot: remove unsafe by rustix
some unsafe libc functions can be replaced by rustix.
I have looked into chroot.rs, and I could only find:
setgroups
setgid
setuid
Which are according to: https://docs.rs/rustix/1.1.4/rustix/not_implemented/libc_internals/fn.setgroups.html are not yet implemented or am I missing something?
Oh... There are some +inux only funcs. But we cannot use them for other unixes... https://docs.rs/rustix/latest/rustix/thread/index.html