Comment 3 for bug 1187970

Revision history for this message
John Johansen (jjohansen) wrote :

AppArmor is denying access permission to the Lexmark print driver, to fix this we need to update the apparmor profile that is used to confine cups.

Janos, can you perform the following test. Please add the following rule to the /etc/apparmor.d/usr.sbin.cupsd file (this will require admin permissions so use sudo).

    /usr/local/lexmark/08zero/bin/printdriver rix,

I would do it so that it is next to the
   /usr/local/lib/cups/** rix,

rule, so that the file looks like
    ...
    /usr/local/lib/cups/** rix,
    /usr/local/lexmark/08zero/bin/printdriver rix,
    /usr/share/** r,
    ...

after this you may do either of the following
  from the cmdline reload the apparmor profile and restart cups
    sudo apparmor_parser -r /etc/apparmor.d/usr.sbin.cupsd
    sudo restart cups

or
   reboot your computer this will reload apparmor policy and restart cups

Adding this rule may not grant enough permissions to get the Lexmark printer to work. If it fails check dmesg and apparmor will log a new message for any new denials it is causing.