SELinux を無効/設定する方法

無効にする方法

1. Desktopプルダウンメニューから、「システム設定」-「セキュリティレベル」を選択します。
設定手順1
2.  SELinuxタブを選択し、「有効にする」のチェックをはずします。その後、OK ボタンをクリックしてください。
設定手順2
3. システムを再起動させます。

有効にしたまま設定する方法

1. "/etc/selinux/targeted/contexts/files/file_contexts"のバックアップを取得してください。
2. "/usr/local/Brother/"ディレクトリー以下を確認し、ディレクトリーの内容により、3-aもしくは3-bを実施してください。
3-a. /usr/local/Brother/以下に"inf", "lpd","cupswrapper" ディレクトリーがあった場合
以下の3行を"file_contexts"に追加してください。
------------------------------------------------------------------------------------
/usr/local/Brother/inf/.* -- system_u:object_r:cupsd_etc_t:s0
/usr/local/Brother/lpd/.* -- system_u:object_r:bin_t:s0
/usr/local/Brother/cupswrapper/.* -- system_u:object_r:bin_t:s0
------------------------------------------------------------------------------------
3-b. "/usr/local/Brother/Printer/(プリンタ・MFC名)/"以下に"inf", "lpd","cupswrapper" ディレクトリーがあった場合
以下の3行を"file_contexts"に追加してください。
------------------------------------------------------------------------------------
/usr/local/Brother/Printer/(printer name)/inf/.* -- system_u:object_r:cupsd_etc_t:s0
/usr/local/Brother/Printer/(printer name)/lpd/.* -- system_u:object_r:bin_t:s0
/usr/local/Brother/Printer/(printer name)/cupswrapper/.* -- system_u:object_r:bin_t:s0
------------------------------------------------------------------------------------
注記:必要な記載内容はディストリビューションによって変わります。以下の情報を参考にし、適切な記載内容をご確認ください。
"lpd" and "cupswrapper"に対しての記述は"/usr/lib(64)/cups/deamon/.*"と同一の記載になります。
"inf"に対しての記述は、"/etc/cups/ppd/.*"箇所の記載と同一になります。
4. 以下のディレクトリーで"restorecon *"コマンドを実行してください。
(3-a.を実施した場合)
/usr/lib/cups/filter
/usr/lib64/cups/filter
/usr/local/Brother/lpd
/usr/local/Brother/inf
/usr/local/Brother/cupswrapper
***"/usr/lib64/cups/filter"でのコマンド実行は64bitディストリビューションのユーザーのみ必要です。
(3-b.を実施した場合)
/usr/lib/cups/filter
/usr/lib64/cups/filter
/usr/local/Brother/Printer/(printer name)/inf
/usr/local/Brother/Printer/(printer name)/lpd
/usr/local/Brother/Printer/(printer name)/cupswrapper
***"/usr/lib64/cups/filter"でのコマンド実行は64bitディストリビューションのユーザーのみ必要です。
5. PCを再起動してください。

注意事項

SELinux の詳細に関しては、ディストリビューション提供元へご相談ください。
閉じる