-
Notifications
You must be signed in to change notification settings - Fork 133
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
Conversation
recipes/minimize_access.rb
Outdated
directory '/var/log' do | ||
owner 'root' | ||
if node['platform'] == 'ubuntu' | ||
group Chef::VersionConstraint.new('>= 14.04').include?(node['platform_version']) ? 'syslog' : 'root' |
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.
@shoekstra do we need the version constraint? Is the check for ubuntu
is not enough here?
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.
@artem-sidorenko just checked and 12.04 LTS is EOL, so it can be removed.
e8f05d2
to
0711510
Compare
@artem-sidorenko commit updated 👍 |
recipes/minimize_access.rb
Outdated
|
||
# /var/log should restricted to root or syslog on ubuntu > 14.04 | ||
directory '/var/log' do | ||
owner 'root'a |
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.
@shoekstra could you please fix this? (a
) ;-)
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.
Whoops, fix incoming. Good spot :)
Signed-off-by: Stephen Hoekstra <shoekstra@schubergphilis.com>
0711510
to
c545dd2
Compare
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.
@shoekstra thank you!
Ubuntu tests should be fixed once dev-sec/linux-baseline#83 is merged.
CC @artem-sidorenko