audit.rules "-e 2" not working

Solution Verified - Updated -

Issue

  • I have RHEL5 installs and am trying to set the audit rules immutable with the "-e 2" option as the last line in /etc/audit/audit.rules.
    But when I restart audit with "service audit restart", it comes back with:
error sending enable request (Invalid argument)  
There was an error in line XX of the /etc/audit.audit.rules  
  • If I run the command:
# auditctl -e 2  

I get

error sending enable request (Invalid argument)  

Environment

  • Red Hat Enterprise Linux 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.