I already did the /usr/local/lexmark thing, no difference.
Here is an excerpt from my usr.sbin.cupsd
...
# FIXME: no policy ATM for hplip and Brother drivers
/usr/bin/hpijs Ux,
/usr/Brother/** Ux,
## JGK 6/9/13 begin
/usr/lexinkjet/** Ux,
/usr/local/lexmark/** Ux,
## JGK 6/9/13 end
# Kerberos authentication
...
Note: I think we need both lexinkjet and lexmard dierctories because the way lexmark installs files and symlinks within. These two directories have printer setups for an entire family of lexmark printers.
(A) Here is the cache after boot today, print producing denial:
janos@Andraslinux:~$ ls -l /etc/apparmor.d/cache/usr.sbin.cupsd
-rw------- 1 root root 87010 Jun 9 09:35 /etc/apparmor.d/cache/usr.sbin.cupsd
janos@Andraslinux:~$ sudo md5sum /etc/apparmor.d/cache/usr.sbin.cupsd
[sudo] password for janos:
04e342575436f1477a3f292e4043938a /etc/apparmor.d/cache/usr.sbin.cupsd
(B) Here is the cache after applying apparmor_parser command:
janos@Andraslinux:~$ sudo apparmor_parser -vTWr /etc/apparmor.d/usr.sbin.cupsd
Warning from /etc/apparmor.d/usr.sbin.cupsd (/etc/apparmor.d/usr.sbin.cupsd line 180): profile /usr/lib/cups/backend/cups-pdf network rules not enforced
Replacement succeeded for "/usr/lib/cups/backend/cups-pdf".
Warning from /etc/apparmor.d/usr.sbin.cupsd (/etc/apparmor.d/usr.sbin.cupsd line 180): profile /usr/sbin/cupsd network rules not enforced
Replacement succeeded for "/usr/sbin/cupsd".
janos@Andraslinux:~$ ls -l /etc/apparmor.d/cache/usr.sbin.cupsd
-rw------- 1 root root 87010 Jun 10 17:51 /etc/apparmor.d/cache/usr.sbin.cupsd
janos@Andraslinux:~$ sudo md5sum /etc/apparmor.d/cache/usr.sbin.cupsd
04e342575436f1477a3f292e4043938a /etc/apparmor.d/cache/usr.sbin.cupsd
printer came to life, but then error and dmesg segfault
(C) After reboot:
janos@Andraslinux:~$ ls -l /etc/apparmor.d/cache/usr.sbin.cupsd
-rw------- 1 root root 87010 Jun 10 17:51 /etc/apparmor.d/cache/usr.sbin.cupsd
janos@Andraslinux:~$ sudo md5sum /etc/apparmor.d/cache/usr.sbin.cupsd
[sudo] password for janos:
04e342575436f1477a3f292e4043938a /etc/apparmor.d/cache/usr.sbin.cupsd
I already did the /usr/local/lexmark thing, no difference.
Here is an excerpt from my usr.sbin.cupsd
... local/lexmark/ ** Ux,
# FIXME: no policy ATM for hplip and Brother drivers
/usr/bin/hpijs Ux,
/usr/Brother/** Ux,
## JGK 6/9/13 begin
/usr/lexinkjet/** Ux,
/usr/
## JGK 6/9/13 end
# Kerberos authentication
...
Note: I think we need both lexinkjet and lexmard dierctories because the way lexmark installs files and symlinks within. These two directories have printer setups for an entire family of lexmark printers.
(A) Here is the cache after boot today, print producing denial:
janos@Andraslin ux:~$ ls -l /etc/apparmor. d/cache/ usr.sbin. cupsd d/cache/ usr.sbin. cupsd ux:~$ sudo md5sum /etc/apparmor. d/cache/ usr.sbin. cupsd 77a3f292e404393 8a /etc/apparmor. d/cache/ usr.sbin. cupsd
-rw------- 1 root root 87010 Jun 9 09:35 /etc/apparmor.
janos@Andraslin
[sudo] password for janos:
04e342575436f14
(B) Here is the cache after applying apparmor_parser command:
janos@Andraslin ux:~$ sudo apparmor_parser -vTWr /etc/apparmor. d/usr.sbin. cupsd d/usr.sbin. cupsd (/etc/apparmor. d/usr.sbin. cupsd line 180): profile /usr/lib/ cups/backend/ cups-pdf network rules not enforced cups/backend/ cups-pdf" . d/usr.sbin. cupsd (/etc/apparmor. d/usr.sbin. cupsd line 180): profile /usr/sbin/cupsd network rules not enforced ux:~$ ls -l /etc/apparmor. d/cache/ usr.sbin. cupsd d/cache/ usr.sbin. cupsd ux:~$ sudo md5sum /etc/apparmor. d/cache/ usr.sbin. cupsd 77a3f292e404393 8a /etc/apparmor. d/cache/ usr.sbin. cupsd
Warning from /etc/apparmor.
Replacement succeeded for "/usr/lib/
Warning from /etc/apparmor.
Replacement succeeded for "/usr/sbin/cupsd".
janos@Andraslin
-rw------- 1 root root 87010 Jun 10 17:51 /etc/apparmor.
janos@Andraslin
04e342575436f14
printer came to life, but then error and dmesg segfault
(C) After reboot:
janos@Andraslin ux:~$ ls -l /etc/apparmor. d/cache/ usr.sbin. cupsd d/cache/ usr.sbin. cupsd ux:~$ sudo md5sum /etc/apparmor. d/cache/ usr.sbin. cupsd 77a3f292e404393 8a /etc/apparmor. d/cache/ usr.sbin. cupsd
-rw------- 1 root root 87010 Jun 10 17:51 /etc/apparmor.
janos@Andraslin
[sudo] password for janos:
04e342575436f14
printer denied