-
Notifications
You must be signed in to change notification settings - Fork 191
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
Tune some parameters for RedHat system #82
Conversation
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.
@strangeman many thanks! It looks good for me and makes totally sense. Could you please address the one suggestion?
controls/os_spec.rb
Outdated
@@ -18,6 +18,7 @@ | |||
# author: Patrick Muench | |||
|
|||
login_defs_umask = attribute('login_defs_umask', default: '027', description: 'Default umask to set in login.defs') | |||
login_defs_umask = attribute('login_defs_umask', default: '077', description: 'Default umask to set in login.defs') if os.redhat? |
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.
what about default: os.redhat? ? '077' : '027'
instead of second line?
dev-sec/linux-baseline#82 Signed-off-by: Artem Sidorenko <artem@posteo.de>
Done. Should I resolve conflict in my branch, or you can do it directly in PR? |
@strangeman thank you! yes, please rebase on the latest master and repush the branch |
18902f0
to
a5fb285
Compare
@artem-sidorenko all done, sorry for the delay. |
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.
@strangeman thank you!
Then, lets break the tests of all os-hardening implementations :-)
Fedora belongs in our tests to the RH family, lets make it explicitely here, as ohai detects platform_family on fedora as 'fedora' and not 'rhel'. See dev-sec/linux-baseline#82 for reference Signed-off-by: Artem Sidorenko <artem@posteo.de>
Hello. Some default parameters in RHEL and CentOS is more strict than current baseline checks, so I think we should make separate checks for them. I added links for Red Hat Enterprise Linux 6 Security Technical Implementation Guide, looks like its actual for EL 7 too.