lib/inspec/resources/linux_audit_system.rb
# The rules property returns the array of audit rules obtained on auditctl -l.
# The auditctl -l list all rules, 1 per line.
The rules property returns the array of audit rules obtained on auditctl -l.
The auditctl -l list all rules, 1 per line.
The rules property returns the array of audit rules obtained on auditctl - l . The auditctl - l list all rules 1 per line .
def rules
      auditctl_cmd = inspec.command("#{auditctl_utility} -l")
      raise Inspec::Exceptions::ResourceFailed, "Executing #{auditctl_utility} -l: #{auditctl_cmd.stderr}" if auditctl_cmd.exit_status.to_i != 0
      auditctl_cmd.stdout.strip.split("\n")
    end
def rules auditctl_cmd = inspec . command ( "#{auditctl_utility} -l" ) raise Inspec :: Exceptions :: ResourceFailed , "Executing #{auditctl_utility} -l: #{auditctl_cmd.stderr}" if auditctl_cmd . exit_status . to_i != 0 auditctl_cmd . stdout . strip . split ( "\n" ) end
The rules property returns the array of audit rules obtained on auditctl -l.
The auditctl -l list all rules, 1 per line.
The rules property returns the array of audit rules obtained on auditctl - l . The auditctl - l list all rules 1 per line .