inspec/test/kitchen/cookbooks/os_prepare/recipes/auditctl.rb
Miah Johnson 97a258ae69 Use a more obvious directory structure for kitchen testing
Signed-off-by: Miah Johnson <miah@chia-pet.org>
2019-10-16 22:41:03 -07:00

5 lines
200 B
Ruby

case node["platform"]
when "centos"
execute "auditctl -a always,exit -F arch=b32 -S open -S openat -F exit=-EACCES -k access"
execute "auditctl -w /etc/ssh/sshd_config -p rwxa -k sshd_config"
end