Research
Skip Research Menus
Research MenuSecurity Enhanced Linux What's New Frequently Asked Questions Background Documents License Download Participating Mail List Archives Remaining Work Contributors Related Work Press Releases Information Assurance Research NIARL In-house Research Areas Mathematical Sciences Program Sabbaticals Computer & Information Sciences Research Technology Transfer Advanced Computing Advanced Mathematics Communications & Networking Information Processing Microelectronics Other Technologies Technology Fact Sheets Publications Related Links |
SELinux Mailing ListRE: pipefs issue
From: Stephen Smalley <sds_at_tycho.nsa.gov>
Date: Thu, 31 May 2007 16:18:24 -0400
SELinux checks permissions when a file descriptor is opened, inherited across execve or received via local IPC, so you will see attempted accesses at those times even if the descriptor is never actually used for a read or write. In this case, the pipe descriptors are inherited across execve and checked at that time (and closed and replaced with descriptors to the null device if access is denied). So if you don't actually need to allow the accesses, you can just add dontaudit rules to suppress the audit messages and SELinux will silently remap those descriptors to /dev/null for you.
> Also, it looks like SELinux is not allowing me to write up. Is that Many MLS systems don't allow writing up without privilege (as that allows a low process to potentially corrupt high data), and the default mls constraints in SELinux policy are written that way. You of course can change them in your policy/mls file if you want, and just use Type Enforcement to provide integrity protection.
> The only mls attribute that I've seen that addresses writing up is mlsfilewritetoclr is for writing up to your high/clearance, while mlsfilewrite allows arbitrary writing (up or down) by the process, and mlstrustedobject allows any process to write to the object. mlsfilewriteinrange looks a bit odd to me. Again, these can be customized to your needs. -- Stephen Smalley National Security Agency -- This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with the words "unsubscribe selinux" without quotes as the message.Received on Thu 31 May 2007 - 16:18:27 EDT |
|
Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009 |