rustix
rustix copied to clipboard
Executability check (Linux >= 6.13)
https://docs.kernel.org/next/userspace-api/check_exec.html
- [ ]
AT_EXECVE_CHECK- for
execveatwhich isrustix_1_0_5::not_implemented::quite_yetATM. However we do not need to wait for it, we can just add it toAtFlags.
- for
- [ ]
SECBIT_EXEC_RESTRICT_FILEandSECBIT_EXEC_DENY_INTERACTIVE(+_LOCKEDvariants)- add to
CapabilitiesSecureBits
- add to
Oblivious it depends on linux_raw_sys and libc support for those flags.
Seems to me like rustix (and linux_raw_sys) has to expose securebits.h, although libc doesn't.
With libc you mean libc crate? or libc (as in libc.so/glibc/musl)?
In the libc crate case, the reason is likely not-yet-implemented.
capabilities_secure_bits,set_capabilities_secure_bits,CapabilitiesSecureBits
Can we please rename them and strip the (then/now) misleading capability part.
Yes, I meant the libc crate.