Re: Restorecond.conf

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

 



On Thu, 2008-11-06 at 11:03 -0800, Justin P. Mattock wrote:
> I'm seeing a fail during boot,
> Not sure if this is restorecond or not.
> When looking at restorecond.conf
> /etc/samba/secrets.tdb is at
> /var/lib/samba/secrets.tdb
> 
> ~/public_html doesn't exist
> 
> ~/.mozilla/plugins/libflashplayer.so
> is at
> /usr/lib/flashplugin-nonfree/libflashplayer.so
> 
> Does it hurt to just change the loaction in restorecond.conf or should
> I configure these apps to use these files?

If you use restorecond (which is optional), then you would normally
modify restorecond.conf to match your system, not the other way around.
And only for files that are likely to get re-created at runtime in a way
that won't preserve their security contexts already (either by virtue of
a type transition rule based on creating domain and parent directory
type or by virtue of explicit application support for preserving
contexts).  

So for example,
/usr/lib/flashplugin-nonfree/libflashplayer.so
is likely already labeled correctly at install time based on your
file_contexts configuration and doesn't require anything in
restorecond.conf, whereas if you locally install a
~/.mozilla/plugins/libflashplayer.so
it likely wouldn't have the right context by default.

-- 
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