forked from pool/libselinux
Accepting request 707195 from home:jsegitz:branches:security:SELinux
- 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 OBS-URL: https://build.opensuse.org/request/show/707195 OBS-URL: https://build.opensuse.org/package/show/security:SELinux/libselinux?expand=0&rev=113
This commit is contained in:
parent
4947377882
commit
4a6ecd2856
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 3 09:34:17 UTC 2019 - <jsegitz@suse.com>
|
||||
|
||||
- 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 - <jsegitz@suse.com>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user