type for less trusted files
I have been involved in some discussions of packaging issues.
There is a desire to have support for treating packages differently depending on signature status. If a package is signed by a trusted key then things operate in the current manner. If the package is unsigned or the key is untrusted then things will be different, we want rpm to decline to install such files to certain directories (discussion on how to do this is continuing
- but it looks like having rpm query the kernel as to whether the SE Linux policy permits an untrusted version of itself to write to the directories etc is best).
For files from an untrusted package we want different labelling. Maybe untrusted_bin_t for files that might otherwise be labelled as bin_t, and have an attribute untrusted_file for all such types.
Then we want a "make relabel" operation to not change untrusted_bin_t to bin_t. We could do this by having setfiles know about the types that it should not relabel (some policy query), or we could simply deny it relabelfrom access.
What do you think?
Signature · 9 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.