無効にする方法
-
Desktopプルダウンメニューから、「システム設定」-「セキュリティレベル」を選択します。
-
SELinuxタブを選択し、「有効にする」のチェックをはずします。その後、[OK]をクリックしてください。
-
システムを再起動させます。
有効にしたまま設定する方法
-
"/etc/selinux/targeted/contexts/files/file_contexts"のバックアップを取得してください。
-
"/usr/local/Brother/"ディレクトリー以下を確認し、ディレクトリーの内容により、以下を実施してください。
<"/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
------------------------------------------------------------------------------------
次に、以下のディレクトリーで"restorecon *"コマンドを実行してください。
/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ディストリビューションのユーザーのみ必要です。
<"/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/.*"箇所の記載と同一になります。
次に、以下のディレクトリーで"restorecon *"コマンドを実行してください。
/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ディストリビューションのユーザーのみ必要です。
-
パソコンを再起動してください。
注意事項
SELinuxの詳細に関しては、ディストリビューション提供元へご相談ください。