Thank you, I'm learning new stuff. Besides, I like low level interfaces.

Results were as expected - I think, except for the last step. After
restarting cupsd "unconfined" disappeared. See below the output of
commands you suggested:

janos@Andraslinux:~$ sudo aa-status
[sudo] password for janos: 
apparmor module is loaded.
You do not have enough privilege to read the profile set.
janos@Andraslinux:~$ ps -Z `pidof cupsd`
LABEL                             PID TTY      STAT   TIME COMMAND
/usr/sbin/cupsd                   823 ?        Ss     0:00 /usr/sbin/cupsd -F
janos@Andraslinux:~$ sudo bash -c "echo -n /usr/sbin/cupsd 
>/sys/kernel/security/apparmor/.remove"
janos@Andraslinux:~$ sudo bash -c "echo -n /usr/lib/cups/backend/cups-pdf 
>/sys/kernel/security/apparmor/.remove"
janos@Andraslinux:~$ sudo aa-status 
apparmor module is loaded.
You do not have enough privilege to read the profile set.
janos@Andraslinux:~$ ps -Z `pidof cupsd`
LABEL                             PID TTY      STAT   TIME COMMAND
unconfined                        823 ?        Ss     0:00 /usr/sbin/cupsd -F
janos@Andraslinux:~$ sudo restart cups
cups start/running, process 18702
janos@Andraslinux:~$ ps -Z `pidof cupsd`
LABEL                             PID TTY      STAT   TIME COMMAND
/usr/sbin/cupsd                 18702 ?        Ss     0:00 /usr/sbin/cupsd -F

Nevertheless, I tried to print with Lexmark, but same result (printer
wakes up, but then segfault). Here is dmesg:

[ 3124.613956] type=1400 audit(1371215611.840:32): apparmor="STATUS" 
operation="profile_load" name="/usr/lib/cups/backend/cups-pdf" pid=18805 
comm="apparmor_parser"
[ 3124.614896] type=1400 audit(1371215611.840:33): apparmor="STATUS" 
operation="profile_load" name="/usr/sbin/cupsd" pid=18805 comm="apparmor_parser"
[ 3186.971241] printdriver[18826]: segfault at 0 ip   (null) sp bfc266dc error 
4 in printdriver[8048000+b000]

Another point:
I booted up to the old, FC3 version, and Lexmark prints without segfault. As I 
mention, print files, etc. are exact copies in both FC3 boot or Ubuntu 13.04 
boot.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1187970

Title:
  apparmor prevents custom printer driver from executing

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1187970/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to