-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new linux-only API process::Child::pidfd
#6281
Comments
Hmm. This means that we would be using a different return type than std for the That said, adding the API under |
That's right, but the The discussion in the tracking issue seems to be focused on how to obtain a pidfd in a race-free way for now, maybe I should get involved and raise that question again in the issue. |
Okay. Let's wait a bit with adding this API. |
Is your feature request related to a problem? Please describe.
Now that #6152 is merged, I think it's reasonable to expose the underlying pidfd we use to the user since AFAIK there are two syscalls that must take pidfd to work:
process_madvise
:madvice
but for another process if the caller hasPTRACE_MODE_READ_FSCREDS
andCAP_SYS_NICE
process_vm_readv
: read or write virtual memory of another process if the caller hasPTRACE_MODE_ATTACH_REALCREDS
Describe the solution you'd like
This API is modeled after unstable libstd API
std::os::linux::process::ChildExt
:Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: