MLS and default file contexts
As best I can tell the current implementation requires a context to have a level or range to be valid in an fc file. However there a cases where I'd prefer that files be created with a given context but at the level of the creating process. Is there a way to do specify this behavior in an fc file?
--
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.
Quoted 5 lines · Ted X Toth
As best I can tell the current implementation requires a context to have a level or range to be valid in an fc file. However there a cases where I'd prefer that files be created with a given context but at the level of the creating process. Is there a way to do specify this behavior in an fc file?
The fc files are just to provide install-time defaults for file labels. Runtime creation of files is governed by policy; in the case of MLS, this is inherit-from-creator unless a range transition rule is specified.
So the only real issue is exempting runtime files from a relabel, which can be done by specifying a <<none>> entry in a fc file, or putting a "customizable file context" on the file, or excluding that tree from relabels.
Signature · 8 lines
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 [email protected] with the words "unsubscribe selinux" without quotes as the message.