Skip to content
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

conf: Fix the scope of the visudo -c check #99

Merged
merged 1 commit into from
Mar 5, 2015

Conversation

Spredzy
Copy link
Contributor

@Spredzy Spredzy commented Feb 19, 2015

Currently, the module does a visudo -c - which check everyfile - to
validate that the sudo::conf was correct. Unfortunately, if one needs
to be in purge -> false, and some files there have wrong permissions
because of a packaging related issues, it cancels the sudo::conf even
if the rule is perfectly valid. This patch aims to fix that, using the
-f option of visudo to validate only the file we are adding.

Currently, the module does a visudo -c - which check everyfile - to
validate that the sudo::conf was correct. Unfortunately, if one needs
to be in purge -> false, and some files there have wrong permissions
because of a packaging related issues, it cancels the sudo::conf even
if the rule is perfectly valid. This patch aims to fix that, using the
-f option of visudo to validate only the file we are adding.
saz added a commit that referenced this pull request Mar 5, 2015
conf: Fix the scope of the visudo -c check
@saz saz merged commit 80cbf88 into saz:master Mar 5, 2015
beddari added a commit to norcams/himlar that referenced this pull request Apr 23, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants