how-to_‎ > ‎

Make SQue 9.3.1 Canon Driver work under Ubuntu Gutsy Gibbon Cupsd

posted Jan 19, 2011, 12:39 PM by Daniele Albrizio

Stariting with cupsys 1.2.12-1ubuntu2 (Gutsy), cups uses apparmor instead of derooting related patches to run more securely. Third party proprietary drivers are likely to be broken with this new architecture.

To make SQue Canon iR printers/copiers driver v. 9.3.1 work, some security relaxations are needed.

In /etc/apparmor.d/usr.sbin.cupsd add just below

# third-party printer drivers; no known structure here
/opt/** rix,

these lines:

# SQue 9.3.1 Canon IR Drivers
/etc/cups/interfaces/** rix,
/proc/ r,
/proc/** r,
/dev/tty r,
/usr/local/sic/ r,
/usr/local/sic/** r,
/usr/local/sic/*.sh rix,
/usr/local/sic/getKey rix,
/usr/local/sic/slq rix,
/usr/local/sic/slq.exe rix,
/usr/local/sic/cpca rix,
/usr/local/sic/ppd/** rm,

Then restart apparmor using:

# /etc/init.d/apparmor restart

Let's print something... et voila'.

If it still doesn't work, take a look at syslog during a print operation using "tail -f /var/log/syslog" and search for lines tagged "audit" like the following:

Jan 7 18:47:40 europa kernel: [438961.364881] audit(1199728060.239:35): type=1503 operation="inode_permission" requested_mask="r"
denied_mask="r" name="/usr/local/sic/squeInfo9.1" pid=31577
profile="/usr/sbin/cupsd"

And modify /etc/apparmor.d/usr.sbin.cupsd accordingly.

Have a good print job! 

Comments