lib/inspec/resources/linux_audit_system.rb
def find_auditctl_or_error
      %w{/usr/sbin/auditctl /sbin/auditctl auditctl}.each do |cmd|
        return cmd if inspec.command(cmd).exist?
      end

      raise Inspec::Exceptions::ResourceFailed, "Could not find `auditctl`. This resource requires `auditctl` utility to be available on the system."
    end
# Check if auditctl is available on the system.
Check if auditctl is available on the system.
Check if auditctl is available on the system .
def find_auditctl_or_error
      %w{/usr/sbin/auditctl /sbin/auditctl auditctl}.each do |cmd|
        return cmd if inspec.command(cmd).exist?
      end
      raise Inspec::Exceptions::ResourceFailed, "Could not find `auditctl`. This resource requires `auditctl` utility to be available on the system."
    end
def find_auditctl_or_error %w{ /usr/sbin/auditctl /sbin/auditctl auditctl } . each do | cmd | return cmd if inspec . command ( cmd ) . exist? end raise Inspec :: Exceptions :: ResourceFailed , "Could not find `auditctl`. This resource requires `auditctl` utility to be available on the system." end
Check if auditctl is available on the system.
Check if auditctl is available on the system .