-
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
Fourth batch of FreeBSD changes for the compliance test suite #915
Merged
squell
merged 9 commits into
trifectatechfoundation:main
from
bjorn3:freebsd_compliance_test4
Nov 28, 2024
Merged
Fourth batch of FreeBSD changes for the compliance test suite #915
squell
merged 9 commits into
trifectatechfoundation:main
from
bjorn3:freebsd_compliance_test4
Nov 28, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
bjorn3
force-pushed
the
freebsd_compliance_test4
branch
from
November 26, 2024 08:37
4c0e5ee
to
7bdadd0
Compare
This removes a test that seemed like it checks that sudo doesn't set PS1 even when SUDO_PS1 is set in the case of a login shell. As it turns out however, this behavior is caused by bash not inheriting PS1 to it's children. If another shell is used, PS1 will be shown to be passed by sudo to the elevated process even with og sudo.
bjorn3
force-pushed
the
freebsd_compliance_test4
branch
from
November 26, 2024 13:03
352772e
to
becb860
Compare
bjorn3
force-pushed
the
freebsd_compliance_test4
branch
from
November 26, 2024 13:05
becb860
to
28e5a3f
Compare
/bin/sh is the only shell that exists by default on both Linux and FreeBSD. And also out of the installable shells the only shell which has the same installation location on both OSes.
If the dash shell receives a signal, it doesn't kill it's children. To handle this, make sure the sh spawned by su execs the program that should receive the signal.
bjorn3
force-pushed
the
freebsd_compliance_test4
branch
from
November 26, 2024 13:33
28e5a3f
to
f664a17
Compare
squell
requested changes
Nov 27, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All changes LGTM, except for arg0_native_is_passed_from_commandline
: removing the symlink there looks like it drastically changes the nature of the test.
different approach to making this test crossplatform
squell
approved these changes
Nov 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Part of #869