diff --git a/libselinux.changes b/libselinux.changes index d40e25a..1344f93 100644 --- a/libselinux.changes +++ b/libselinux.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Mon Jun 3 09:34:17 UTC 2019 - + +- In selinux-ready + * Removed check for selinux-policy package as we don't ship one + (bsc#1136845) + * Add check that restorecond is installed and enabled + ------------------------------------------------------------------- Fri May 24 11:22:19 UTC 2019 - diff --git a/selinux-ready b/selinux-ready index 163489b..7700339 100644 --- a/selinux-ready +++ b/selinux-ready @@ -196,17 +196,17 @@ check_initupstart() check_runlevel() { - if [ "$(systemctl is-enabled restorecond.service)" == "enabled" ]; then + if [ "$(systemctl is-enabled restorecond.service 2>/dev/null)" == "enabled" ]; then printf "\tcheck_runlevel: OK. restorecond is enabled on your system\n" return 0; fi - printf "\tcheck_runlevel: ERR. please execute 'yast2 runlevel' and enable restorecond.\n" + printf "\tcheck_runlevel: ERR. please enable restorecond with systemctl enable restorecond.service.\n" return 1 } check_packages() { - PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol1 libsemanage1 selinux-policy" + PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol1 libsemanage1 restorecond" FAIL=0 for i in $PKGLST