auditallow and { sbin_t bin_t }
A problem that I regularly have is that some program does something I don't like/understand but I don't know why the program in question is being run. A modern Unix system is so complex that finding out what exactly happens by using a debugger or reading source code is excessively difficult.
In the past I've done things such as give the file a type test_exec_t and putting in an auditallow rule allowing everyone to execute it so I can see what happens.
I think that this is useful enough that I am considering adding it to my policy tree.
I was thinking of having audit_sbin_t and audit_bin_t file types and then changing all policy such that everything that allows an action for sbin_t will also allow it for audit_sbin_t. Then if you want to discover what is running that strange process you can just use a simple chsid and wait for it to be run again.
This is fairly ugly, but I can't think of a better solution to the problem at the moment. Any suggestions will be appreciated.
Signature · 10 lines
http://www.coker.com.au/selinux/ My NSA Security Enhanced Linux packages http://www.coker.com.au/bonnie++/ Bonnie++ hard drive benchmark http://www.coker.com.au/postal/ Postal SMTP/POP benchmark http://www.coker.com.au/~russell/ My home page -- 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.