|
From: <ssm...@us...> - 2008-01-24 20:37:22
|
Revision: 2754
http://selinux.svn.sourceforge.net/selinux/?rev=2754&view=rev
Author: ssmalley
Date: 2008-01-24 12:37:02 -0800 (Thu, 24 Jan 2008)
Log Message:
-----------
Author: Marshall Miller
Email: mm...@tr...
Subject: fixfiles -C: relabel all file contexts that have changed
Date: Thu, 24 Jan 2008 14:39:40 -0500
This fixes the situation where one path is a substring of another path, but not a prefix. For example, if /lib and /var/lib have both changed in the file_contexts file, then /var/lib would not be selected for relabel even though it should.
Marshall Miller
Modified Paths:
--------------
trunk/policycoreutils/scripts/fixfiles
Modified: trunk/policycoreutils/scripts/fixfiles
===================================================================
--- trunk/policycoreutils/scripts/fixfiles 2008-01-24 20:29:37 UTC (rev 2753)
+++ trunk/policycoreutils/scripts/fixfiles 2008-01-24 20:37:02 UTC (rev 2754)
@@ -84,7 +84,7 @@
do if ! echo "$pattern" | grep -q -f ${TEMPFILE} 2>/dev/null; then \
echo "$pattern"; \
case "$pattern" in *"*") \
- echo "$pattern" | sed 's,\*$,,g' >> ${TEMPFILE};;
+ echo "$pattern" | sed -e 's,^,^,' -e 's,\*$,,g' >> ${TEMPFILE};;
esac; \
fi; \
done | \
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|