diff --git a/policycoreutils.spec b/policycoreutils.spec index 0369b61..08ddfbb 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -146,6 +146,7 @@ Group: System Environment/Base Requires: policycoreutils-python = %{version}-%{release} Requires: xorg-x11-server-Xephyr Requires: matchbox-window-manager +Requires(post): /sbin/chkconfig %description sandbox The policycoreutils-python package contains the scripts to create graphical sandboxes @@ -160,6 +161,15 @@ The policycoreutils-python package contains the scripts to create graphical sand [ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen exit 0 +%post sandbox +if [ $1 -eq 1 ]; then + /sbin/chkconfig sanbox --add +fi +%preun sandbox +if [ $1 -eq 0 ]; then + /sbin/chkconfig sanbox --del +fi + %package newrole Summary: The newrole application for RBAC/MLS Group: System Environment/Base