coreutils icon indicating copy to clipboard operation
coreutils copied to clipboard

chroot: remove unsafe by rustix

Open oech3 opened this issue 7 months ago • 2 comments

some unsafe libc functions can be replaced by rustix.

oech3 avatar Apr 27 '26 21:04 oech3

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?

ksgk1 avatar Apr 30 '26 17:04 ksgk1

Oh... There are some +inux only funcs. But we cannot use them for other unixes... https://docs.rs/rustix/latest/rustix/thread/index.html

oech3 avatar Apr 30 '26 23:04 oech3