Comment 5 for bug 133818

Revision history for this message
hellekin (hellekin) wrote :

Ubuntu Gutsy comes with AppArmor, which prevents the Brother (and other) drivers to work with CUPS as they're in /usr/local instead of /opt/

To fix the problem, try editing /etc/apparmor.d/usr.sbin.cupsd to add the following lines:

   # Brother printer drivers are installed in /usr/local
   /usr/local/Brother/inf/brMFC210Cfunc r,
   /usr/local/Brother/lpd/filterMFC210C ix,
   # And need read acces to /dev/tty
   /dev/tty r,

Then restart: /etc/init.d/apparmor reload

All printing should resume fine. It works for me, although I don't know the security implications of letting cupsd read /dev/tty.
I also had an alert for a write request to /dev/tty while trying to change the printer configuration but don't know the security implications either and the above works anyway if the printer is already configured.