Research Menu

.
Skip Search Box

SELinux Mailing List

Re: Restorecond.conf

From: Stephen Smalley <sds_at_tycho.nsa.gov>
Date: Thu, 06 Nov 2008 14:10:17 -0500


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@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
Received on Thu 6 Nov 2008 - 14:11:27 EST
 

Date Posted: Jan 15, 2009 | Last Modified: Jan 15, 2009 | Last Reviewed: Jan 15, 2009

 
bottom

National Security Agency / Central Security Service