mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-25 07:22:07 +00:00
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 <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
This commit is contained in:
parent
9cc0749a73
commit
1c15c8b537
@ -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`"
|
||||
|
Loading…
Reference in New Issue
Block a user