rustix
rustix copied to clipboard
Pidfd enhancements
- [x] rust-lang/libc#4402
- [ ]
PidfdFlags::THREAD = PIDFD_THREAD - [x]
pidfd_send_signal(#992) is inrustix::not_implemented::yetandrustix::process(#1448) - [ ]
PIDFD_SIGNAL_THREAD,PIDFD_SIGNAL_THREAD_GROUPandPIDFD_SIGNAL_PROCESS_GROUP.- Because the
rustix::process::pidfd_send_signalinterface does not expose an (empty) flags argument and adding one would be a breaking change, I suggest to deprecatedrustix::process::pidfd_send_signaland addrustix::process::pidfd_send_signal_{thread,thread_group,process_group}variants. This time with an empty flags for the future. - On the other hand this could require downstream code to switch between these variants to maybe a
rustix::process::pidfd_send_signal_with_flags(name tbd) is also a thing.pidfd_send_signal_to
- Because the
- [ ]
PIDFD_SELFandPIDFD_SELF_PROCESSdescriptors implemented inrustix::processlikerustix::fs::CWDis implemented. - [ ]
PIDFD_GET_*_NAMESPACEioctls. Either as one function with an non-exhaustive enum argument or as separated for functions for each ioctl. - [ ]
PIDFD_GET_INFOioctl,pidfd_infostruct,PIDFD_INFO_*bitflags- [ ]
PIDFD_INFO_EXIT
- [ ]
would it be possible to support passing siginfo_t to pidfd_send_signal?
What about SO_PEER_FD support? nix supports it and it's very similar to rustix::net::sockopt::socket_peercred. It's super important for the moden Linux userspace (systemd and services/apps above).
This one #1474?