From 1c15c8b537b6c632074fac07019e0c3e012687a5 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Sun, 10 Jul 2011 16:25:18 +0200 Subject: [PATCH] policycoreutils: fixfiles: label /root but not /var/lib/BackupPC This patch removes /root from the excluded dirs. This also adds /var/lib/BackupPC to list of directories to ignore labeling. Mainly because this directory tends to be Huge and causes a huge spike in the amount of time it takes to relabel. Especially if there is a relabel caused by a policy update. Signed-off-by: Eric Paris Acked-by: Dan Walsh --- policycoreutils/scripts/fixfiles | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/policycoreutils/scripts/fixfiles b/policycoreutils/scripts/fixfiles index e4e5f0db..27dcccfb 100755 --- a/policycoreutils/scripts/fixfiles +++ b/policycoreutils/scripts/fixfiles @@ -103,7 +103,7 @@ exclude_dirs_from_relabelling() { exclude_dirs() { exclude= - for i in /home /root /tmp /dev; do + for i in /var/lib/BackupPC /home /tmp /dev; do [ -e $i ] && exclude="$exclude -e $i"; done exclude="$exclude `exclude_dirs_from_relabelling`"