-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Sudoers validate #4794
Sudoers validate #4794
Conversation
@JonEllis this PR contains the following merge commits: Please rebase your branch to remove these commits. |
This comment was marked as outdated.
This comment was marked as outdated.
On reflection, this should check the file permissions as a separate step, check and update them if necessary even if the file has the correct content. |
6637a1a
to
8c16daf
Compare
cc @JonEllis0 |
This reverts commit b9562a8.
How does this look to add visudo validation to sudoers files? |
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.
Thanks for your contribution! Please add a changelog fragment.
SUMMARY
Fixes #4745
Validates the proposed rule via visudo before creating the actual rule, so that any invalid rules will not continue to be saved to files.
This also sets the mode of the created files to 0440 as requested by sudo.
ISSUE TYPE