Linux - SecurityThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am inputting:
-a never,exit -F arch=b64 -F path=/usr/sbin/ntpd -F perm=x -k time
-a never,exit -F arch=b32 -F path=/usr/sbin/ntpd -F perm=x -k time
-a always,exit -F arch=b64 -S adjtimex -k time
-a always,exit -F arch=b32 -S adjtimex -k time
This is an exercise for another program that I do not want to log events for. The desired result is that I do not see /usr/sbin/ntpd in the audit events. This is not doing the job.
In the end I have a program that is accessing a file that I must monitor, but I do not want to log events when that program accesses the file. Thank you for any help that you may be able to provide.
You only posted some rules so we don't know if these rules were loaded and in which order (anything in audit.rules overriding it?) and w/o relevant audit.log excerpts we can't see what rules got triggered.
Quote:
Originally Posted by clcbluemont
I have a program that is accessing a file that I must monitor, but I do not want to log events when that program accesses the file.
Could you be more specific? What's the actual purpose? What type or kind of file? And is using the audit service is a hard requirement (else see Inotify, FUSE LoggedFS)?
I found the answer. The version of auditctl that comes with RHEL 5 does not have the ability to hook on the exe or comm field in a SYSCALL event.
So, for example if ntpd tries to access a file(/var/log/somefile)that is being watched by audit, I have no way of telling auditctl to ignore ntpd accessing that file while flagging any other executable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.