Puppet Class: cis_security_hardening::rules::auditd_log_perms
- Defined in:
- manifests/rules/auditd_log_perms.pp
Summary
Ensure audit log files are not read or write-accessible by unauthorized usersOverview
The operating system must be configured so that audit log files are not read or write- accessible by unauthorized users.
The operating system must be configured to permit only authorized users ownership of the audit log files.
The operating system must permit only authorized groups ownership of the audit log files.
Rationale: Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality.
Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit operating system activity.
Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000058-GPOS-00028
Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality.
Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit operating system activity.
Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000058-GPOS-00028, SRG-OS-000059- GPOS-00029
Unauthorized disclosure of audit records can reveal system and configuration data to attackers, thus compromising its confidentiality.
Audit information includes all information (e.g., audit records, audit settings, audit reports) needed to successfully audit operating system activity.
Satisfies: SRG-OS-000057-GPOS-00027, SRG-OS-000058-GPOS-00028, SRG-OS-000059- GPOS-00029
50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 |
# File 'manifests/rules/auditd_log_perms.pp', line 50
class cis_security_hardening::rules::auditd_log_perms (
Boolean $enforce = false,
String $user = 'root',
String $group = 'root',
String $mode = '0600',
) {
if $enforce {
$logfiles = fact('cis_security_hardening.auditd.log_files')
if $logfiles != undef {
$logfiles.each |$logfile| {
file { $logfile:
ensure => file,
owner => $user,
group => $group,
mode => $mode,
}
}
}
}
}
|