-
Notifications
You must be signed in to change notification settings - Fork 79
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
Don't return to parent after fork #886
base: main
Are you sure you want to change the base?
Conversation
Added a CI fix. See the commit message. |
Is it possible to write a regression test for this? |
If I recall correctly the original case where I found the panic is as follows:
On Linux PAM will ask the user to authenticate even when the user wants to run su to become itself. On FreeBSD PAM will allow su to be used without authentication when the target is the same as the calling user. I'm not sure how to configure Linux PAM to get the FreeBSD behavior in a test. |
2b2bb1b
to
c9b5a80
Compare
It's OK to make an issue for this, so we can track the project. :) |
644e1d3
to
6ff7332
Compare
f991c69
to
ba7d2db
Compare
ba7d2db
to
e1811ec
Compare
This can cause closed files to be closed again, which will panic and is a violation of IO safety.
This makes it clearer that exec_monitor can only return when there is an error.
e1811ec
to
24a3ea4
Compare
This can cause closed files to be closed again, which will panic and is a violation of IO safety.