Puppet Class: security_baseline::rules::common::sec_freevxfs
- Defined in:
- manifests/rules/common/sec_freevxfs.pp
Summary
Ensure mounting of freevxfs filesystems is disabled (Scored)Overview
The freevxfs filesystem type is a free version of the Veritas type filesystem. This is the primary filesystem type for HP-UX operating systems.
Rationale: Removing support for unneeded filesystem types reduces the local attack surface of the system. If this filesystem type is not needed, disable it.
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'manifests/rules/common/sec_freevxfs.pp', line 28
class security_baseline::rules::common::sec_freevxfs (
Boolean $enforce = true,
String $message = '',
String $log_level = ''
) {
if $enforce {
kmod::install { 'freevxfs':
command => '/bin/true',
}
} else {
if($facts['security_baseline']['kernel_modules']['freevxfs']) {
echo { 'freevxfs':
message => $message,
loglevel => $log_level,
withpath => false,
}
}
}
}
|