mirror of
https://github.com/inspec/inspec
synced 2024-11-23 13:13:22 +00:00
add usage header for audit resource
This commit is contained in:
parent
9554a4ac32
commit
7e9eb2920d
2 changed files with 15 additions and 0 deletions
|
@ -4,6 +4,13 @@
|
|||
|
||||
require 'utils/simpleconfig'
|
||||
|
||||
# Usage:
|
||||
# describe audit_daemon_conf do
|
||||
# its("space_left_action") { should eq "email" }
|
||||
# its("action_mail_acct") { should eq "root" }
|
||||
# its("admin_space_left_action") { should eq "halt" }
|
||||
# end
|
||||
|
||||
class AuditDaemonConf < Vulcano.resource(1)
|
||||
name 'audit_daemon_conf'
|
||||
|
||||
|
|
|
@ -2,6 +2,14 @@
|
|||
# copyright: 2015, Vulcano Security GmbH
|
||||
# license: All rights reserved
|
||||
|
||||
# Usage:
|
||||
# describe audit_daemon_rules do
|
||||
# its("LIST_RULES") {should contain_match(/^exit,always arch=.* key=time-change syscall=adjtimex,settimeofday/) }
|
||||
# its("LIST_RULES") {should contain_match(/^exit,always arch=.* key=time-change syscall=stime,settimeofday,adjtimex/) }
|
||||
# its("LIST_RULES") {should contain_match(/^exit,always arch=.* key=time-change syscall=clock_settime/)}
|
||||
# its("LIST_RULES") {should contain_match(/^exit,always watch=\/etc\/localtime perm=wa key=time-change/)}
|
||||
# end
|
||||
|
||||
class AuditDaemonRules < Vulcano.resource(1)
|
||||
name 'audit_daemon_rules'
|
||||
|
||||
|
|
Loading…
Reference in a new issue