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

Properly verify the kernel dump setting #52

Merged
merged 2 commits into from
Mar 16, 2017

Conversation

artem-sidorenko
Copy link
Member

0 and 2 are the allowed options

0 and 2 are the allowed options
@chris-rock chris-rock requested a review from atomic111 March 13, 2017 10:39
Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

This looks good to me @artem-sidorenko

@artem-sidorenko
Copy link
Member Author

@chris-rock I fixed the second dump test here, can you please have a look?

Copy link
Member

@chris-rock chris-rock left a comment

Choose a reason for hiding this comment

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

This looks like a very good solution to me @artem-sidorenko I would like to have @atomic111 review it as well, just to be sure I have not missed anything. LGTM after the end is fixed

impact 1.0
title 'Secure Core Dumps - dump path'
desc 'Ensure that core dumps are done with fully qualified path'
only_if { kernel_parameter('fs.suid_dumpable').value == 2 }
end
Copy link
Member

Choose a reason for hiding this comment

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

This is one end too much

Copy link
Member Author

Choose a reason for hiding this comment

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

thanks, fixed

Copy link
Member

@atomic111 atomic111 left a comment

Choose a reason for hiding this comment

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

@artem-sidorenko thanks for the improvement. if someone wants to have more information http://man7.org/linux/man-pages/man5/core.5.html

@atomic111 atomic111 merged commit 12b317e into dev-sec:master Mar 16, 2017
@artem-sidorenko artem-sidorenko deleted the kernel-dump branch March 17, 2017 19:22
artem-sidorenko added a commit to artem-forks/chef-os-hardening that referenced this pull request Mar 28, 2017
artem-sidorenko added a commit to artem-forks/chef-os-hardening that referenced this pull request Mar 28, 2017
artem-sidorenko added a commit to artem-forks/chef-os-hardening that referenced this pull request Mar 28, 2017
artem-sidorenko added a commit to artem-forks/chef-os-hardening that referenced this pull request Mar 29, 2017
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