LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 04-06-2010, 01:51 PM   #1
abti
LQ Newbie
 
Registered: Sep 2008
Location: Ohio
Distribution: RHEL6&7 (work) Fedora&Ubuntu(home)
Posts: 25
Blog Entries: 1

Rep: Reputation: 16
error in line 5 of /etc/audit/audit.rules RHEL5u3


I'm receiving an error when trying to start/restart my auditd service. It was working until I made a few changes. I'm running RHEL5u3. Any suggestions? I've commented out line 5 and I still get the same error. I think it might be a bug, but don't really know for sure.

======
Starting auditd: [FAILED]
There was an error in line 5 of /etc/audit/audit.rules
=======



My /etc/audit/audit.rules
==========
# This is a sample rule set. The rules are executed from top
# to bottom. A '#' denotes comments. The rules are basically
# the auditctl commandline parameters.

# Remove existing rules
-D

# Enable auditing
-e 1

# Increase kernel buffer size
-b 8192

# Failure of auditd causes a kernel panic
-f 2

#
# Audit1: audit accesses to security relevant files
#

# watch passwd databases
-w /etc/passwd -p wa
-w /etc/shadow -p wa
-w /etc/group -p wa

# pam configuration
-w /etc/pam.d

# auditd configuration
#-w /etc/auditd.conf
#-w /etc/audit.rules

# watch utmp,wtmp
-w /var/run/utmp
-w /var/run/wtmp

# watch system log files
-w /var/log/messages
-w /var/log/audit/audit.log
-w /var/log/audit/audit[1-4].log

# watch audit subsystem's configuration files
-w /etc/auditd.conf -p wa
-w /etc/audit.rules -p wa

# SELinux configuration
-w /etc/selinux/config -p wa

# login records
-w /var/log/lastlog
-w /var/log/faillog

# login configuration
-w /etc/login.defs

# init configuration
-w /etc/rc.d/init.d
-w /etc/inittab -p wa

# sshd configuration
-w /etc/ssh/sshd_config

# audit creating new directories
-a exit,always -S mkdir -F auid!=0

# audit chmod,chown for non-root users
-a exit,always -S chmod -S fchmod -F auid!=0
-a exit,always -S chown -S fchown -S lchown -F auid!=0

# changes to security labels
-a exit,always -S setxattr -S lsetxattr -S fsetxattr
-a exit,always -S removexattr -S lremovexattr -S fremovexattr
 
Old 04-06-2010, 05:42 PM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by abti View Post
It was working until I made a few changes.
If this is a production system then I recommend using configuration file versioning. By using that or listing exact changes in the admin log or diffing against backups making changes makes sense. So. Do you have any backups to verify against?


Quote:
Originally Posted by abti View Post
I've commented out line 5 and I still get the same error.
Depending on how Auditd reads its config that'll be line "-w /etc/passwd -p wa" or "#-w /etc/auditd.conf". If it is the latter then isn't auditd.conf supposed to reside in /etc/audit/? Else would using '-a exit,always -F path=/etc/audit/audit.conf -F perm=wa' work? Note you don't have to edit /etc/audit/audit.rules directly as you can test rules with 'auditctl'.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I read the audit time stamp? msg=audit(1213186256.105:20663) abefroman Linux - Software 3 04-21-2011 06:37 PM
audit.rules statement entered from mccartjd Linux - Security 1 02-18-2010 05:32 PM
sudo audit connection refused error mirror51 Linux - Newbie 1 07-23-2009 12:26 AM
What are this audit avc: denied { read } etc....error! RMLinux Linux - Newbie 1 11-27-2008 02:02 AM
/etc/audit.rules - Error sending watch insert request Linux_Learner[LL] Linux - Security 2 07-16-2006 07:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 01:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration