Skip to contentSkip to conversation

are comments allowed in default_contexts?

DISCUSSION Larry Ross 2 participants 2 messages Jan 25, 2010 SELinux security module

lore
Share & tools
lore

Larry Ross

author
#0 lore raw

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

#1 lore raw
Quoted 8 lines · Larry Ross

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?

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.