Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
Notices
Welcome to
LinuxQuestions.org , a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free.
Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please
contact us . If you need to reset your password,
click here .
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
08-15-2006, 08:58 AM
#1
LQ Newbie
Registered: Mar 2006
Posts: 13
Rep:
Set SELinux to audit everithing?
Hello,
I run RHEL 4 2.6.9-22.ELsmp
I want to run SElinux in permisive mode but I want to audit as much as possible, not only the failed logins.
I want to log when users rename a file or try to rename a fine, copies, deletions, etc. And include root user as well.
Thanks in advance.
08-15-2006, 10:29 AM
#2
Moderator
Registered: May 2001
Posts: 21,610
I want to log when users rename a file or try to rename a fine, copies, deletions, etc. And include root user as well.
Install LAuS ("audit" rpm AFAIK), check /etc/auditd.conf, add rules to /etc/audit.rules and run auditd.
08-16-2006, 04:26 AM
#3
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
Very well, I have audit running, but the audit.rules file only contains this:
cat /etc/audit.rules
# This file contains the auditctl rules that are loaded
# whenever the audit daemon is started via the initscripts.
# First rule - delete all
-D
# Feel free to add below this line. See auditctl man page
# Increase the buffers to survive stress events
-b 256
I have been searching for a way to include rules but I don't find a single example of it. I don't find templates or example rules.
What's in you audit.rules file?
Thanks for your answer.
08-16-2006, 06:17 AM
#4
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
well i found the capp.rules in the docuementation, which is a good start.
Thank you!
08-16-2006, 10:50 AM
#5
LQ Newbie
Registered: Mar 2006
Posts: 13
Original Poster
Rep:
Does anyone know a viewer or reader for the audit.log files?
or
can someone help me reading this:
type=SYSCALL
msg=audit(1155702961.442:7338):
arch=40000003
syscall=195
success=yes
exit=0
a0=8112ca
a1=bff92ffc
a2=b5dff4
a3=bff92ffc
ite
ms=1
pid=1998
auid=4294967295
uid=0
gid=0
euid=0
suid=0
fsuid=0
egid=0
sgid=0
fsgid=0
comm="crond"
exe="/usr/sbin/crond"
Thanks
08-06-2008, 05:56 AM
#6
LQ Newbie
Registered: Aug 2008
Posts: 3
Rep:
Quote:
Originally Posted by
geburah
type=SYSCALL
msg=audit(1155702961.442:7338):
arch=40000003
syscall=195
success=yes
exit=0
a0=8112ca
a1=bff92ffc
a2=b5dff4
a3=bff92ffc
ite
ms=1
pid=1998
auid=4294967295
uid=0
gid=0
euid=0
suid=0
fsuid=0
egid=0
sgid=0
fsgid=0
comm="crond"
exe="/usr/sbin/crond"
You logged SYSCALL, which caught uid 0 (root) executing syscall 195 (stat64) through crond in process id 1998.
Or in human readable form: your cron daemon checked some file information.
Thread Tools
Search this Thread
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
/dev/audit
bleunuit
Linux - Software
0
05-11-2005 08:26 AM
security audit?
nabil_boussetta
Linux - Security
1
07-07-2004 03:38 AM
Printing Audit
ezra143
Linux - General
0
07-06-2004 12:57 AM
Audit
Pranesh
Linux - Software
0
08-05-2003 09:13 AM
Audit Daemon in RH 7.3
oulevon
Linux - Security
1
08-06-2002 07:20 AM
All times are GMT -5. The time now is 11:26 AM .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know .
Latest Threads
LQ News