Method: Inspec::Resources::AuditDaemon#initialize
- Defined in:
- lib/resources/auditd.rb
#initialize ⇒ AuditDaemon
Returns a new instance of AuditDaemon.
32 33 34 35 36 37 38 39 40 |
# File 'lib/resources/auditd.rb', line 32 def initialize @content = inspec.command('/sbin/auditctl -l').stdout.chomp @params = [] if @content =~ /^LIST_RULES:/ return skip_resource 'The version of audit is outdated. The `auditd` resource supports versions of audit >= 2.3.' end parse_content end |