Skip to content

Update Fedora controls#84

Merged
artem-sidorenko merged 1 commit intodev-sec:masterfrom
shoekstra:fix_fedora_controls
Nov 20, 2017
Merged

Update Fedora controls#84
artem-sidorenko merged 1 commit intodev-sec:masterfrom
shoekstra:fix_fedora_controls

Conversation

@shoekstra
Copy link
Copy Markdown
Contributor

  • The audit package on Fedora is called audit and not auditd, so updated condition.

  • Fedora doesn't install with a syslog package so for now skipping it, maybe more of a discussion point as then a default should be decided - either rsyslog or syslog-ng - for remediation via puppet/chef/ansible .

Copy link
Copy Markdown
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.

Thank you @shoekstra What would be a good solution for the logging feature on Fedora?

Comment thread controls/package_spec.rb
@@ -74,13 +74,14 @@
describe package(val_syslog_pkg) do
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@atomic111 @artem-sidorenko Should we accept systemd journal as a default solution here too?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@chris-rock I think yes

Comment thread controls/package_spec.rb
title 'Install auditd'
desc 'auditd provides extended logging capacities on recent distribution'
audit_pkg = os.redhat? || os.suse? || os.name == 'amazon' ? 'audit' : 'auditd'
audit_pkg = os.redhat? || os.suse? || os.name == 'amazon' || os.name == 'fedora' ? 'audit' : 'auditd'
Copy link
Copy Markdown
Member

@chris-rock chris-rock Nov 10, 2017

Choose a reason for hiding this comment

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

👍

Copy link
Copy Markdown
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 many thanks!

@chris-rock any further remarks?

Comment thread controls/package_spec.rb
@@ -74,13 +74,14 @@
describe package(val_syslog_pkg) do
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@chris-rock I think yes

@shoekstra
Copy link
Copy Markdown
Contributor Author

@artem-sidorenko @chris-rock hi guys, what can I do to get this merged? last thing outstanding until dev-sec/chef-os-hardening#179 and be merged and all it's tests go green.

Comment thread controls/package_spec.rb
describe package(val_syslog_pkg) do
it { should be_installed }
end
only_if { os.name != 'fedora' }
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@shoekstra can we have here a short comment, explaining the reason for this only_of and fedora exclusion? (its not obvious for somebody, who does not know the context and problem here)

Copy link
Copy Markdown
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.

@shoekstra Thank you for the improvement. Approved once the comment requested by @artem-sidorenko is in

Comment thread controls/package_spec.rb
end
# Fedora doesn't install with a syslogger out of the box and instead uses
# systemd journal; as there is there is no affinity towards either rsyslog
# or syslog-ng, we'll skip this check on Fedora hosts.
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@artem-sidorenko @chris-rock here it is, all yours 👍

Copy link
Copy Markdown
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 df64f6c into dev-sec:master Nov 20, 2017
@shoekstra shoekstra deleted the fix_fedora_controls branch November 20, 2017 12:35
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