executables under /usr/share
In correctly labelling the files on a SE Linux system I have come across one significant problem, executables under /usr/share.
Many packages want to install such executables and expects that they can be executed by regular users, cron jobs, and/or daemons.
Labelling them correctly is unreasonably difficult with the current file_contexts method as there is no coherent naming scheme, and I would have to list all the files individually.
The only practical solutions at the moment seem to be the following:
1) Label all files with the execute bit set under /usr/share as bin_t.
2) Allow execute access to usr_t.
3) Create a new share_t type of file that user_t and user_crond_t can execute and label all files under /usr/share with it.
If anyone has any better ideas then I would be very interested to hear them.
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.