Notice that in %post section of spacewalk-monitoring-selinux is called script spacewalk-monitoring-selinux-enable, which contains:
# Install SELinux policy modules for selinuxvariant in mls strict targeted do /usr/sbin/semodule -s ${selinuxvariant} -l > /dev/null 2>&1 \ && /usr/sbin/semodule -s ${selinuxvariant} -i \ /usr/share/selinux/${selinuxvariant}/spacewalk-monitoring.pp || : done
/sbin/restorecon -rv /etc/rc.d/np.d /etc/notification /var/lib/nocpulse /var/lib/notification /var/log/nocpulse /sbin/restorecon -rvi /var/log/SysVStep.* /var/run/SysVStep.*
So the selinux policy module is loaded before perl-NOCpulse-Scheduler is installed. Therefore I assume that file from perl-NOCpulse-Scheduler should have scontext as defined in that module. Or I understand it wrong?
Notice that in %post section of spacewalk- monitoring- selinux is called script spacewalk- monitoring- selinux- enable, which contains:
# Install SELinux policy modules sbin/semodule -s ${selinuxvariant} -l > /dev/null 2>&1 \
/usr/share/ selinux/ ${selinuxvarian t}/spacewalk- monitoring. pp || :
for selinuxvariant in mls strict targeted
do
/usr/
&& /usr/sbin/semodule -s ${selinuxvariant} -i \
done
/sbin/restorecon -rv /etc/rc.d/np.d /etc/notification /var/lib/nocpulse /var/lib/ notification /var/log/nocpulse
/sbin/restorecon -rvi /var/log/SysVStep.* /var/run/SysVStep.*
So the selinux policy module is loaded before perl-NOCpulse- Scheduler is installed. Therefore I assume that file from perl-NOCpulse- Scheduler should have scontext as defined in that module.
Or I understand it wrong?