Bug 883742 - SELinux is preventing /usr/sbin/cupsd from 'unlink' accesses on the file /etc/cups/printers.conf.O.
Summary: SELinux is preventing /usr/sbin/cupsd from 'unlink' accesses on the file /etc...
Keywords:
Status: CLOSED NEXTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:a042f29c471049e79df07f06e1b...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-12-05 08:11 UTC by MichaelD
Modified: 2013-07-04 11:50 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-07-04 11:50:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: type (9 bytes, text/plain)
2012-12-05 08:12 UTC, MichaelD
no flags Details
File: hashmarkername (14 bytes, text/plain)
2012-12-05 08:12 UTC, MichaelD
no flags Details

Description MichaelD 2012-12-05 08:11:58 UTC
Additional info:
libreport version: 2.0.18
kernel:         3.6.8-2.fc17.x86_64

description:
:SELinux is preventing /usr/sbin/cupsd from 'unlink' accesses on the file /etc/cups/printers.conf.O.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If you want to fix the label. 
:/etc/cups/printers.conf.O default label should be cupsd_rw_etc_t.
:Then you can run restorecon.
:Do
:# /sbin/restorecon -v /etc/cups/printers.conf.O
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If you believe that cupsd should be allowed unlink access on the printers.conf.O file by default.
:Then you should report this as a bug.
:You can generate a local policy module to allow this access.
:Do
:allow this access for now by executing:
:# grep cupsd /var/log/audit/audit.log | audit2allow -M mypol
:# semodule -i mypol.pp
:
:Additional Information:
:Source Context                system_u:system_r:cupsd_t:s0-s0:c0.c1023
:Target Context                system_u:object_r:cupsd_etc_t:s0
:Target Objects                /etc/cups/printers.conf.O [ file ]
:Source                        cupsd
:Source Path                   /usr/sbin/cupsd
:Port                          <Unknown>
:Host                          (removed)
:Source RPM Packages           cups-1.5.4-11.fc17.x86_64
:Target RPM Packages           
:Policy RPM                    selinux-policy-3.10.0-161.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.6.8-2.fc17.x86_64 #1 SMP Tue Nov
:                              27 19:35:02 UTC 2012 x86_64 x86_64
:Alert Count                   1
:First Seen                    2012-12-05 09:06:56 CET
:Last Seen                     2012-12-05 09:06:56 CET
:Local ID                      10aa42ad-ca70-4ff1-8e14-76bbea7ccb24
:
:Raw Audit Messages
:type=AVC msg=audit(1354694816.711:109): avc:  denied  { unlink } for  pid=985 comm="cupsd" name="printers.conf.O" dev="dm-2" ino=175796 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cupsd_etc_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1354694816.711:109): arch=x86_64 syscall=unlink success=no exit=EACCES a0=7fffd1432670 a1=81 a2=7fffd1432689 a3=7fffd1431fb0 items=0 ppid=1 pid=985 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=cupsd exe=/usr/sbin/cupsd subj=system_u:system_r:cupsd_t:s0-s0:c0.c1023 key=(null)
:
:Hash: cupsd,cupsd_t,cupsd_etc_t,file,unlink
:
:audit2allow
:
:#============= cupsd_t ==============
:allow cupsd_t cupsd_etc_t:file unlink;
:
:audit2allow -R
:
:#============= cupsd_t ==============
:allow cupsd_t cupsd_etc_t:file unlink;
:

Comment 1 MichaelD 2012-12-05 08:12:01 UTC
Created attachment 658046 [details]
File: type

Comment 2 MichaelD 2012-12-05 08:12:04 UTC
Created attachment 658047 [details]
File: hashmarkername

Comment 3 Fedora End Of Life 2013-07-04 00:54:13 UTC
This message is a reminder that Fedora 17 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 17. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '17'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 17's end of life.

Bug Reporter:  Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 17 is end of life. If you 
would still like  to see this bug fixed and are able to reproduce it 
against a later version  of Fedora, you are encouraged  change the 
'version' to a later Fedora version prior to Fedora 17's end of life.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


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