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

Tune some parameters for RedHat system #82

Merged
merged 1 commit into from
Nov 7, 2017

Conversation

strangeman
Copy link
Contributor

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.

@artem-sidorenko artem-sidorenko self-assigned this Oct 19, 2017
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.

@strangeman many thanks! It looks good for me and makes totally sense. Could you please address the one suggestion?

@@ -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?
Copy link
Member

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?

artem-sidorenko added a commit to dev-sec/chef-os-hardening that referenced this pull request Oct 31, 2017
@strangeman
Copy link
Contributor Author

Done. Should I resolve conflict in my branch, or you can do it directly in PR?

@artem-sidorenko
Copy link
Member

@strangeman thank you! yes, please rebase on the latest master and repush the branch

@strangeman
Copy link
Contributor Author

@artem-sidorenko all done, sorry for the delay.

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.

@strangeman thank you!

Then, lets break the tests of all os-hardening implementations :-)

@artem-sidorenko artem-sidorenko merged commit 3c427b8 into dev-sec:master Nov 7, 2017
artem-sidorenko added a commit to dev-sec/chef-os-hardening that referenced this pull request Feb 7, 2018
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>
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