強制モードでSELinuxを設定してInfoPrint Selectを実行する
checkpolicy
とpolicycoreutils
rpmファイルがインストールされていない場合は、インストールします。yum install policycoreutils-python
- 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
- allow_ypbind SELinux booleanを有効にします。
setsebool -P allow_ypbind=on
- 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
- 新しいSELinuxポリシーモジュール(RHEL 6のみ)をインストールします。
semodule -i ipmselect.pp
- 一時ファイル(RHEL 6のみ)を削除します。
rm -f ipmselect.pp ipmselect.mod ipmselect.te