selinux enforced (Ubuntu Hardy) : printer doesn't print : cupsd: Unable to open log file "/var/log/cups/access_log" - Permission denied
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
refpolicy (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: selinux-
With selinux permissive, I print without problem. When enforced, I can't print. I click on the printer icon in the upper bar, a window opens indicating that the document is in queue but time passes and nothing happens. Syslog gives the following:
Oct 29 05:24:58 localhostlouis cupsd: Unable to open log file "/var/log/
Oct 29 05:24:58 localhostlouis kernel: [ 5311.663595] audit(122527229
I checked the owner:group permissions for the file access_log and they are "root:lp 100640"
I'm not sure it's a bug, I'm relatively new to Linux and I don't know anything about selinux. I did a search on Google with the terms "ubuntu selinux printer problem" and there are very few results.
I use selinux-
ProblemType: Bug
Architecture: i386
Date: Wed Oct 29 18:33:46 2008
DistroRelease: Ubuntu 8.04
ExecutablePath: /usr/bin/yelp
NonfreeKernelMo
Package: yelp 2.22.1-
PackageArchitec
ProcEnviron:
PATH=/
LANG=fr_CA.UTF-8
SHELL=/bin/bash
SourcePackage: yelp
Uname: Linux 2.6.24-21-generic i686
The audit message shows that the context of /var/log/ cups/access_ log is tcontext= system_ u:object_ r:file_ t, it should cupsd_log_t. `restorecon -rv /` should fix that (along with any other mislabeled files).