forked from pool/libselinux
Accepting request 1222034 from security:SELinux
- Drop check_runlevel from selinux-ready script and remove restorecond from check_packages as we don't require it to be selinux-ready. OBS-URL: https://build.opensuse.org/request/show/1222034 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libselinux?expand=0&rev=81
This commit is contained in:
commit
468acd7c9b
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 7 08:24:33 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
|
||||
|
||||
- Drop check_runlevel from selinux-ready script and remove restorecond
|
||||
from check_packages as we don't require it to be selinux-ready.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 11 19:47:41 UTC 2024 - Cathy Hu <cathy.hu@suse.com>
|
||||
|
||||
|
@ -167,19 +167,9 @@ check_initupstart()
|
||||
fi
|
||||
}
|
||||
|
||||
check_runlevel()
|
||||
{
|
||||
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 enable restorecond with systemctl enable restorecond.service.\n"
|
||||
return 1
|
||||
}
|
||||
|
||||
check_packages()
|
||||
{
|
||||
PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol2 libsemanage2 restorecond"
|
||||
PKGLST="checkpolicy policycoreutils selinux-tools libselinux1 libsepol2 libsemanage2"
|
||||
FAIL=0
|
||||
|
||||
for i in $PKGLST
|
||||
@ -240,6 +230,5 @@ check_packages
|
||||
check_config
|
||||
check_initupstart
|
||||
check_pam
|
||||
check_runlevel
|
||||
|
||||
rm -rf $TD
|
||||
|
Loading…
Reference in New Issue
Block a user