Files
RHEL9-CIS-Audit/section_6/cis_6.1/cis_6.1.12.yml
T
Mark Bolwell bd3316b71a improved test
Signed-off-by: Mark Bolwell <mark.bollyuk@gmail.com>
2022-06-21 17:12:44 +01:00

22 lines
517 B
YAML

{{ if .Vars.run_heavy_tests }}
{{ if .Vars.rhel9cis_rule_6_1_12 }}
command:
unowned_dirs:
title: 6.1.12 | Ensure no unowned files or directories exist
exec: "df --local -P | awk {'if (NR!=1) print $6'} | xargs -I '{}' find '{}' -xdev -nouser"
exit-status: 0
timeout: {{ .Vars.timeout_ms }}
stdout:
- '!/.*/'
meta:
server: 1
workstation: 1
CIS_ID:
- 6.1.12
CISv8: 3.3
CISv8_IG1: true
CISv8_IG2: true
CISv8_IG3: true
{{ end }}
{{ end }}