From 0ae5e5f70c6c7ab13ea765084c27fc87106345a0 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Fri, 18 Dec 2020 17:24:10 +0100 Subject: [PATCH] semanage.conf - expand list of ignoredirs It should prevent problems with wrong labels on directories in / after commands like: # useradd -Z unconfined_u -d /var test # matchpathcon /var /var unconfined_u:object_r:user_home_dir_t:s0 --- semanage.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/semanage.conf b/semanage.conf index e2aad0c..406f16f 100644 --- a/semanage.conf +++ b/semanage.conf @@ -51,7 +51,7 @@ expand-check=0 usepasswd=False bzip-small=true bzip-blocksize=5 -ignoredirs=/root +ignoredirs=/root;/bin;/boot;/dev;/etc;/lib;/lib64;/proc;/run;/sbin;/sys;/tmp;/usr;/var optimize-policy=true [sefcontext_compile]