On Wed, 2005-03-16 at 14:22 -0500, Ryan Gall wrote:
> > #Context for the driver configuration files
> > /etc/ndiswrapper/ -- system_u:object_r:loadndis_content_t
>
> you probably want this:
>
> /etc/ndiswrapper(/.*)? system_u:object_r:loadndis_content_t
>
> so you can label all of the driver stuff tha'ts stored under that
> directory and it's subdirectories. I don't think your pattern will
> match anything.
>
Actually everything does get the correct labels here. I guess it is
setting the label on the ndiswrapper directory and then all the child
directories and files are inheriting that context.
Well if the directory is labeled correctly, and files are created in
that directory, then it would get loadndis_content_t. However, if you
relabeled, I bet they would end up having the wrong labels. Try running
matchpathcon on a file in /etc/ndiswrapper, to see what file context
matches. (`matchpathcon /etc/ndiswrapper/somefile`).
--
Chris PeBenito
Tresys Technology, LLC
(410) 290-1411 x150