Re: are comments allowed in default_contexts?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, 2010-01-25 at 08:39 -0800, Larry Ross wrote:
> 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.

-- 
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@xxxxxxxxxxxxx with
the words "unsubscribe selinux" without quotes as the message.

[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux