From 2e3675dc88a71a4bc4a4533ad058288a1f6fa90b Mon Sep 17 00:00:00 2001 From: Jason Zaman Date: Fri, 18 May 2018 12:05:29 +0800 Subject: [PATCH 1/2] misc-functions: /selinux is gone in favour of /sys/fs/selinux It was moved to /sys/fs/selinux/ long ago and not supported anymore Signed-off-by: Jason Zaman --- bin/misc-functions.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 0648e6cfd..f3ad52305 100755 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -439,14 +439,12 @@ preinst_selinux_labels() { # SELinux file labeling (needs to execute after preinst) # only attempt to label if setfiles is executable # and 'context' is available on selinuxfs. - if [ -f /selinux/context -o -f /sys/fs/selinux/context ] && \ - [ -x /usr/sbin/setfiles -a -x /usr/sbin/selinuxconfig ]; then + if [ -f /sys/fs/selinux/context -a -x /usr/sbin/setfiles -a -x /usr/sbin/selinuxconfig ]; then __vecho ">>> Setting SELinux security labels" ( eval "$(/usr/sbin/selinuxconfig)" || \ die "Failed to determine SELinux policy paths."; - addwrite /selinux/context addwrite /sys/fs/selinux/context /usr/sbin/setfiles -F "${file_contexts_path}" -r "${D}" "${D}" -- 2.16.1