Skip to contentSkip to conversation

{Patch 0/5] Polyinstantation

RFC Casey Schaufler 1 participant 1 message May 11, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw
Quoted 11 lines · --- Chad Sellers

The two instances of /tmp/foo have different contexts (that's the
reason /tmp was polyinstantiated in the first place). Any audit
messages (avc messages do this now) should include the context of the
file (as well as device and inode), not just the filename. So, the two
instances can be differentiated. Additionally, auditing based on
filename is unreliable to begin with.

So long as the mapping from context to pathname
(via the mountpoint) can be reconstructed at a
later date this ought to work fine.

Quoted 11 lines

I agree that this is a bad practice, but these programs could move to my
scheme. MLS applications that use "label flipping" have to be security
aware in order to perform that flipping (meaning they have to call
security functions to flip their label). So, they could include a call
to my library function to modify their namespace appropriately when
flipping labels.

Hum. Yes, they could do that. I don't see
such a requirement being very popular.

Quoted 9 lines

Of course, this requires the
entrypoint program
starting the application to have setup a new namespace for the
application in the first place. If the application flips so frequently
that this affects performance, then I'd say the application is flipping
labels a little too frequently.

Consider a MLS version of sendmail as your worst
case scenario.

Casey Schaufler
[email protected]

__________________________________
Do you Yahoo!?
Take Yahoo! Mail with you! Get it on your mobile phone.
http://mobile.yahoo.com/maildemo

--
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.