Getting the real task name in avc messages
Quoted 1 line
Steve, want to take the updated patch to linux-audit?
Ok. Let me compile it and see what the logs look like first.
Thanks,
-Steve Grubb
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.
Quoted 3 lines · Steve G
Quoted 1 line
Steve, want to take the updated patch to linux-audit?
Ok. Let me compile it and see what the logs look like first.
Ok. I built and ran a kernel with it here, and ran some selinux tests, and it looked good. It has some side benefits for SELinux even beyond the comm information, e.g. capturing the exe= upon syscall exit lets us get it cleanly without having to worry about mmap sem locking by the caller (which was an issue for mmap/mprotect previously) and moving the task-related audit handling to syscall exit should avoid having bogus information included for our networking checks that occur outside of process context. Tools like seaudit may need to be updated to get the task-related info from the subsequent syscall audit record instead of from the avc-generated record, but they can correlate it based on the timestamp/serial.
One further change that should be made is to use something like audit_log_untrustedstring on the comm and on the exe path.
Signature · 8 lines
Stephen Smalley <[email protected]> National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.