Skip to contentSkip to conversation

: relabel all mount runtime files in the restorecond example config

PATCH New Guido Trentalancia 1 participant 1 message Jun 15, 2012 SELinux security module

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : 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.

---
 policycoreutils/restorecond/restorecond.conf |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
policycoreutils/restorecond/restorecond.conf +1 -1
@@ -1,7 +1,7 @@
 /etc/services
 /etc/resolv.conf
 /etc/samba/secrets.tdb
-/etc/mtab
+/etc/mtab*
 /var/run/utmp
 /var/log/wtmp
 /root/* 

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.