-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated Ubuntu 20.04 rules * added fix for issue #76 * updated REFERENCE
- Loading branch information
1 parent
8ef55c4
commit a7f2c45
Showing
53 changed files
with
545 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# @summary | ||
# Ensure Automatic Error Reporting is not enabled (Automated) | ||
# | ||
# The Apport Error Reporting Service automatically generates crash reports for debugging | ||
# | ||
# Rationale: | ||
# Apport collects potentially sensitive data, such as core dumps, stack traces, and log files. They can contain passwords, | ||
# credit card numbers, serial numbers, and other private material. | ||
# | ||
# @param enforce | ||
# Sets rule enforcemt. If set to true, code will be exeuted to bring the system into a comliant state. | ||
# | ||
# | ||
# @example | ||
# class { 'cis_security_hardening::rules::automatic_error_reporting': | ||
# enforce => true, | ||
# } | ||
# | ||
class cis_security_hardening::rules::automatic_error_reporting ( | ||
Boolean $enforce = false, | ||
) { | ||
$apport = fact('cis_security_hardening.apport.installed') | ||
if $enforce and $apport { | ||
$ensure = $facts['os']['family'].downcase() ? { | ||
'suse' => 'absent', | ||
default => 'purged', | ||
} | ||
|
||
ensure_packages(['apport'], { | ||
ensure => $ensure, | ||
}) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.