Running InfoPrint Select with SELinux set in enforcing mode
- Install
checkpolicy
andpolicycoreutils
rpm files if not already installed:yum install policycoreutils-python
- Change InfoPrint Select directories and files SELinux context:
semanage fcontext -a -t cupsd_rw_etc_t '/opt/Ricoh/InfoPrint-Manager/config(/.*)?' semanage fcontext -a -t cupsd_tmp_t '/opt/Ricoh/InfoPrint-Manager/pipes(/.*)?' restorecon -RvF /opt/Ricoh/InfoPrint-Manager/config /opt/Ricoh/InfoPrint-Manager/pipes
- Turn on allow_ypbind SELinux boolean:
setsebool -P allow_ypbind=on
- Generate SELinux policy module:
cd /tmp cp /opt/Ricoh/InfoPrint-Manager/selinux/ipmselect.te /tmp /usr/bin/checkmodule -M -m -o ipmselect.mod ipmselect.te /usr/bin/semodule_package -o ipmselect.pp -m ipmselect.mod
- Install the new SELinux policy module: