Comment 7 for bug 147800

Revision history for this message
TJ (tj) wrote :

I've got the same problem here. Bluetooth printing to HP Deskjet 995C was working fine earlier in the Gutsy release cycle but tonight I find it can't print and the reason appears to be related to the appamor configuration in /etc/appamor.d/usr.sbin.cupsd since disabling appamor (sudo /etc/init.d/appamor stop) allows the printing to go ahead.

/var/log/syslog
Oct 15 21:12:38 hephaestion kernel: [ 9906.153900] audit(1192479158.736:4): type=1503 operation="socket_create" family="bluetooth" sock_type="seqpacket" protocol=0 pid=8028 profile="/usr/sbin/cupsd"
Oct 15 21:12:39 hephaestion kernel: [ 9906.453894] audit(1192479159.032:5): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=8036 profile="/usr/sbin/cupsd"
Oct 15 21:12:39 hephaestion kernel: [ 9906.474310] audit(1192479159.060:6): type=1503 operation="inode_permission" requested_mask="rw" denied_mask="rw" name="/dev/tty" pid=8039 profile="/usr/sbin/cupsd"

/var/log/cups/error_log
E [15/Oct/2007:21:12:38 +0100] [Job 2] Can't open Bluetooth connection
E [15/Oct/2007:21:12:38 +0100] PID 8028 (/usr/lib/cups/backend/bluetooth) stopped with status 1!
E [15/Oct/2007:21:12:41 +0100] PID 8027 (/usr/lib/cups/filter/foomatic-rip) stopped with status 9!
E [15/Oct/2007:21:13:58 +0100] PID 8077 (/usr/lib/cups/backend/bluetooth) stopped with status 1!

/var/log/cups/access_log
localhost - - [15/Oct/2007:21:12:38 +0100] "POST /printers/Deskjet995C HTTP/1.1" 200 165041 Print-Job successful-ok
localhost - - [15/Oct/2007:21:12:38 +0100] "POST / HTTP/1.1" 200 176 Get-Jobs successful-ok
localhost - - [15/Oct/2007:21:12:38 +0100] "POST / HTTP/1.1" 200 176 Get-Jobs successful-ok