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

Control ownership of /var/log #178

Merged
merged 1 commit into from
Nov 16, 2017

Conversation

shoekstra
Copy link
Contributor

Ubuntu tests should be fixed once dev-sec/linux-baseline#83 is merged.

CC @artem-sidorenko

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling e8f05d2 on shoekstra:fix_ubuntu_tests into 0476764 on dev-sec:master.

directory '/var/log' do
owner 'root'
if node['platform'] == 'ubuntu'
group Chef::VersionConstraint.new('>= 14.04').include?(node['platform_version']) ? 'syslog' : 'root'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shoekstra do we need the version constraint? Is the check for ubuntuis not enough here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@artem-sidorenko just checked and 12.04 LTS is EOL, so it can be removed.

@shoekstra
Copy link
Contributor Author

@artem-sidorenko commit updated 👍


# /var/log should restricted to root or syslog on ubuntu > 14.04
directory '/var/log' do
owner 'root'a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shoekstra could you please fix this? (a) ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Whoops, fix incoming. Good spot :)

Signed-off-by: Stephen Hoekstra <shoekstra@schubergphilis.com>
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling c545dd2 on shoekstra:fix_ubuntu_tests into 0476764 on dev-sec:master.

Copy link
Member

@artem-sidorenko artem-sidorenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@shoekstra thank you!

@artem-sidorenko artem-sidorenko merged commit 568b327 into dev-sec:master Nov 16, 2017
@artem-sidorenko artem-sidorenko changed the title Make ubuntu tests pass Control ownership of /var/log Nov 16, 2017
@shoekstra shoekstra deleted the fix_ubuntu_tests branch November 16, 2017 15:20
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.

3 participants