Download Latest Version whitehack_virtualbox_with_symlinks-0.4.12n.tgz (33.3 kB)
Email in envelope

Get an email when there's a new version of whitehack

Name Modified Size InfoDownloads / Week
Parent folder
whitehack_brother_printer_with_selinux-0.2-12m.noarch.rpm.md5 2012-03-27 92 Bytes
whitehack_brother_printer_with_selinux-0.2.12m.tgz.md5 2012-03-27 85 Bytes
whitehack_brother_printer_with_selinux-0.2-12m.src.rpm.md5 2012-03-27 89 Bytes
whitehack_brother_printer_with_selinux-enabled-0.2-12m.noarch.rpm.md5 2012-03-27 100 Bytes
Totals: 4 Items   366 Bytes 0
This whitehack includes/improves Brother own recommended way of integrating with selinux:
Title: "I want to print using CUPS while keeping SELinux enabled."
* http://welcome.solutions.brother.com/bsc/public_s/id/linux/en/faq_prn.html#30

Symptom:
* When a job is queued to the printer /var/log/audit.log contains errors:
- execute_no_trans for brlpdwrappermfc filtermfcj6910dw brprintconf_mfc
* script psconvertij2 calls /usr/bin/gs -r -g2332x5400 -q -dNOPROMPT -dNOPAUSE -dSAFER -sDEVICE=ppmraw -sOutputFile=- - -c quit
# Note: -r needs an argument: vis-à-vis error message: "-r must be followed by <res> or <xres>x<yres>
# /etc/opt/brother/Printers/mfcj6910dw/inf/brmfcj6910dwrc is empty
# Coding consideration: It appears psconvertij2 send error messages to stdout, not stderr, FIX

NOTE: 
 * this package is released as 0.2 beta.
 * It might work for you, it works for me, but I only have 1 printer
  - whitehack_brother_printer_with_selinux-enable should work with more then one concurrent type of printer
 * I am releasing is as a "works for me" hoping some others will give it a go and feedback.
 * If all goes well I will tidy it up and release it as a 1.0

To install use:
yum install  ~/rpmbuild/RPMS/noarch/whitehack_brother_printer_with_selinux-enabled-0.2-12m.noarch.rpm

This creates: /usr/bin/whitehack_brother_printer_with_selinux

Once installed it can be temporarily disabled with this command:
# /usr/bin/whitehack_brother_printer_with_selinux disable

Once installed it's status can queried with this command:
# /usr/bin/whitehack_brother_printer_with_selinux status

To remove again use yum:
yum remove whitehack_brother_printer_with_selinux-enabled

You can also install without enabling with this command:
yum install  ~/rpmbuild/RPMS/noarch/whitehack_brother_printer_with_selinux-0.2-12m.noarch.rpm

This alternate install gives you the chance to visually inspect the code in
/usr/bin/whitehack_brother_printer_with_selinux before you run it.

To build the .spec file simply run ../whitehack_bin/mkwhitehack in this src directory

This will create 3 files:
Wrote: /home/nevilled/rpmbuild/SRPMS/whitehack_brother_printer_with_selinux-0.2-12m.src.rpm
Wrote: /home/nevilled/rpmbuild/RPMS/noarch/whitehack_brother_printer_with_selinux-0.2-12m.noarch.rpm
Wrote: /home/nevilled/rpmbuild/RPMS/noarch/whitehack_brother_printer_with_selinux-enabled-0.2-12m.noarch.rpm

NJoy
NevilleDNZ
Source: README, updated 2012-03-27