policycoreutils: restorecond: relabel all mount runtime files in the restorecond example config

Ship a restorecond.conf file that relabels all mount runtime files under /etc and
not just /etc/mtab.

Mount also uses /etc/mtab~[0-9]{0,20} lock files (the number corresponds to the
PID) and the /etc/mtab.tmp temporary file.

The above refers to mount from util-linux-2.21.2 from kernel.org. See mount -vvv
for the location of such files.

A patch is also available for the reference policy to fix this issue.

Signed-off-by: Guido Trentalancia <guido@trentalancia.com>
Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
Guido Trentalancia 2012-06-15 18:40:13 +02:00 committed by Eric Paris
parent b8067636b6
commit 46b60eee89
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
/etc/services
/etc/resolv.conf
/etc/samba/secrets.tdb
/etc/mtab
/etc/mtab*
/var/run/utmp
/var/log/wtmp
/root/*