add usage header for audit resource

This commit is contained in:
Christoph Hartmann 2015-09-05 23:07:34 +02:00 committed by Dominik Richter
parent 9554a4ac32
commit 7e9eb2920d
2 changed files with 15 additions and 0 deletions

View file

@ -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'

View file

@ -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'