are comments allowed in default_contexts?
A quick question: Are comments allowed in the default_contexts and user contexts files?
/etc/selinux/strict/contexts/
and/etc/selinux/strict/contexts/users/root
Are normal '#' comment lines ignored in the processing of these files?
Thank you,
Larry
Quoted 8 lines · Larry Ross
A quick question: Are comments allowed in the
default_contextsand user contexts files?
/etc/selinux/strict/contexts/
and/etc/selinux/strict/contexts/users/rootAre normal '#' comment lines ignored in the processing of these files?
Technically, no. However, the first field (e.g. system_r:crond_t:s0) is matched against the caller's context and if it does not match, then the line is ignored. So in effect, any illegal context value, including '#' should cause the entire line to be ignored.
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.