Running InfoPrint Select with SELinux set in enforcing mode

To allow InfoPrint Select clients to work when SELinux is set in enforcing mode, you need to complete the following procedure:
  1. Install checkpolicy and policycoreutils rpm files if not already installed:
    yum install policycoreutils-python
  2. 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
    
  3. Turn on allow_ypbind SELinux boolean:
    setsebool -P allow_ypbind=on
  4. 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
    
  5. Install the new SELinux policy module:
    semodule -i ipmselect.pp
  6. Remove temporary files:
    rm -f ipmselect.pp ipmselect.mod ipmselect.te