強制モードでSELinuxを設定してInfoPrint Selectを実行する

Red Hat Enterprise LinuxでSELinuxが強制モードに設定されている場合、InfoPrint Selectクライアントを動作させるには、以下の手順を実行します。
  1. checkpolicypolicycoreutils rpmファイルがインストールされていない場合は、インストールします。
    yum install policycoreutils-python
  2. InfoPrint SelectのディレクトリーとファイルSELinuxのコンテキストを変更します。
    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. allow_ypbind SELinux booleanを有効にします。
    setsebool -P allow_ypbind=on
  4. SELinuxポリシーモジュール(RHEL 6のみ)を生成します。
    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. 新しいSELinuxポリシーモジュール(RHEL 6のみ)をインストールします。
    semodule -i ipmselect.pp
  6. 一時ファイル(RHEL 6のみ)を削除します。
    rm -f ipmselect.pp ipmselect.mod ipmselect.te