I want to print using CUPS while keeping SELinux enabled. (Linux)
Backup the "/etc/selinux/targeted/contexts/files/file_contexts" file before making any changes to the original file.
Check "/usr/local/Brother/" folder to find what folders are under it.
If your system has "inf", "lpd","cupswrapper" folders under "/usr/local/Brother", add the following 3 lines to the end of the file ( /etc/selinux/targeted/contexts/files/file_contexts ).
If your system has "inf", "lpd","cupswrapper" folders under "/usr/local/Brother/Printer/[your printer's name]/", add the following 3 lines to the end of the file ( /etc/selinux/targeted/contexts/files/file_contexts ).
The part after the doble hyphen can differ between distributions. Refer the followings to confirm the correct statement for your distribution.
For "lpd" and "cupswrapper", the part should be the same as the configuration for "/usr/lib(64)/cups/deamon/.*" in the "file_contexts".
For "inf", the part should be the same as the configuration for "/etc/cups/ppd/.*" in the "file_contexts".
Run the command "restorecon *" in the following directories:
(For step 3-a.)
/usr/lib/cups/filter
/usr/lib64/cups/filter <===This is necessary only for 64bit OS users
/usr/local/Brother/lpd
/usr/local/Brother/inf
/usr/local/Brother/cupswrapper
(For step 3-b.)
/usr/lib/cups/filter
/usr/lib64/cups/filter <===This is necessary only for 64bit OS users
/usr/local/Brother/Printer/(printer name)/inf
/usr/local/Brother/Printer/(printer name)/lpd
/usr/local/Brother/Printer/(printer name)/cupswrapper
Restart the PC.
Jeśli Twoje pytanie pozostaje bez odpowiedzi, czy sprawdziłaś/sprawdziłeś inne odpowiedzi na często zadawane pytania?