Bug 189561 - cupsd avc denial
Summary: cupsd avc denial
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: cups
Version: rawhide
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-21 02:48 UTC by Dave Jones
Modified: 2015-01-04 22:26 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2006-05-22 16:57:08 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Dave Jones 2006-04-21 02:48:21 UTC
on startup..

type=AVC msg=audit(1145584029.314:7): avc:  denied  { setattr } for  pid=2669
comm="cupsd" name="cups" dev=dm-0 ino=10453024
scontext=system_u:system_r:cupsd_t:s0-s0:c0.c255
tcontext=user_u:object_r:var_run_t:s0 tclass=dir

Comment 1 Habig, Alec 2006-04-24 12:08:29 UTC
Similar but a bit different here:

type=AVC msg=audit(1145879719.492:48): avc:  denied  { getattr } for  pid=3377
comm="sh" name="audit" dev=sda1 ino=589290 scontext=root:system_r:cupsd_t tcontex
t=system_u:object_r:auditd_log_t tclass=dir

libselinux-1.23.11-1.1, selinux-policy-targeted-1.27.1-2.28, cups-1.1.23-15.4

Did an autorelabel on the filesystem, didn't help.

  setsebool -P cupsd_disable_trans 1

makes the AVC error go away, but is a pretty blunt instrument.


Comment 2 Daniel Walsh 2006-04-25 00:37:14 UTC
First on is a labeling problem.  

restorecon -R -v /var/run/cups

Any idea how it got mislabled?

On the second,

Disabling cups should not be done.  I know of no reason why cups would getattr
on the auditlog???



Comment 3 Dave Jones 2006-04-25 04:49:32 UTC
no idea how it got mislabelled.  This box got installed with FC5 a few weeks
back, and updated to rawhide a few days after FC5-GA.  I've never booted this
install with selinux=0, and I don't recall even running setenforce on this box
in the last few weeks.


Comment 4 Daniel Walsh 2006-04-25 13:45:42 UTC
Tim does this directory get created outside of the RPM ?

Dan

Comment 5 Tim Waugh 2006-04-25 14:02:26 UTC
Oops, the only reference to this directory in the file manifest is this:

%dir %attr(0511,lp,sys) /var/run/cups/certs

I'll add this before it:

%dir %attr(0755,root,lp) /var/run/cups


Comment 6 Tim Waugh 2006-04-25 14:05:07 UTC
Fixed in CVS.

Comment 8 Tim Waugh 2006-05-12 16:26:35 UTC
Fixed in 1.2.0-1.1.


Note You need to log in before you can comment on or make changes to this bug.