Commit Graph

10 Commits

Author SHA1 Message Date
Bernd Müller 3b95e7fc03 changed disable dccp conf for preventing kernel messages
dccp_diag: Unknown symbol dccp_hashinfo (err 0)

https://access.redhat.com/solutions/2321691

$ cat /etc/modprobe.d/ansible-hardening-disable-dccp.conf
install dccp /bin/true
install dccp_diag /bin/true

Change-Id: I7441d71c52bdb4f215e1976d15e9282d9cd75139
Signed-off-by: Bernd Müller <mueller@b1-systems.de>
2019-10-21 13:18:03 +02:00
Markos Chandras f422da8599 Add support for the openSUSE Leap distributions
Add support for the openSUSE Leap distributions. The security rules
are similar to the RedHat and Ubuntu ones. We also replace
ansible_os_family with ansible_pkg_mgr since the former does not
return consistent results across different SUSE distributions especially
on older Ansible versions.

Change-Id: I20ffe17039bb641aad70d8123f0b7e7417a42cba
2017-06-27 15:43:53 +01:00
Major Hayden 38270e7870 [Docs] Replace security role references
This patch changes any reference of openstack-ansible-security to
ansible-hardening.

Change-Id: Ib264e31a926c05380b0d1dcd630ad8f3fd1e58f3
2017-06-12 18:59:28 +00:00
Major Hayden 1819c4241a Configure AIDE before initial run
This patch ensures that AIDE is fully configured before the first
database initialization process begins.

Closes-Bug: 1686110
Change-Id: I209b88afb305828fa6e46de255ef11f5a6645427
2017-05-16 15:33:00 +00:00
Major Hayden efbeb691a2 Add AIDE checks for ACL/xattrs [+Docs]
CentOS/RHEL have strict AIDE configs, but Ubuntu's configuration needs
extra configuration. This patch adds lines to the end of Ubuntu's AIDE
confgiuration to meet the requirements of RHEL-07-021600,
RHEL-07-021610, and RHEL-07-021620.

Documentation is included.

Implements: blueprint security-rhel7-stig
Change-Id: I107fa931f80d6871195027be0ed8db4105e2ddf4
2016-12-08 22:21:01 +00:00
Major Hayden 85630fd27f Enable graphical login banner
This patch enables login warning banners on graphical logins. Docs
will be in a follow-on patch.

Implements: blueprint security-rhel7-stig
Change-Id: I9aa7e2c2691b0d2c0659826037909bf43cef0505
2016-11-18 13:48:43 -06:00
Major Hayden 5fbc456807 Set graphical session locks
This patch applies the graphical session lock settings from the following
STIG controls:

  - RHEL-07-010060
  - RHEL-07-010070
  - RHEL-07-010071
  - RHEL-07-010073
  - RHEL-07-010074

Docs will be provided in a follow-on patch.

Implements: blueprint security-rhel7-stig
Change-Id: I306ea5e2e274a2ca63158ba8b039686b27a5d923
2016-11-14 08:15:49 -06:00
Matt Thompson d1ca8dbaa7 Add ability to enable unattended upgrades
This commit adds the ability to enable automatic package upgrades via
openstack-ansible-security.  To enable, add the following variable to
your /etc/openstack_deploy/user_variables.yml file:

unattended_upgrades_enabled: true

To have the unattended upgrades system send e-mail notifications
when packages need updating or errors are encountered, add the
following to user_variables.yml:

unattended_upgrades_notifications: true

As many organisations do not subscribe to auto updates, this
functionality will remain disabled by default.

Note that the first iteration of this change does not allow deep
customisation of unatteded-upgrades.  This means that as it stands
only trusty-security (or $distro-security) updates will be applied.

Closes-Bug: #1568075

Change-Id: I22ba1a02acfbe2befb601af6a4099d53d988d856
2016-04-15 11:58:29 +01:00
Major Hayden 7a3fd19766 V-38682: Disable bluetooth modules
Change-Id: Ic59306c7722560fd1051cae0f74c1cc2660ac2cb
2015-10-14 21:23:11 -05:00
Jesse Pretorius 58ac7a8a7a Enable role testing and make structure ansible-galaxy compatible
This patch adds the bits needed to implement automated syntax/lint
role testing. It also moves the role into the base repository so
that the role becomes fully compatible with ansible-galaxy to
improve the role's consumability.

Change-Id: Ia79cd5dedbbe50dfdf46688830a989ff0897832a
2015-10-09 11:47:23 +00:00