Bug 838234 - SELinux is preventing /usr/sbin/cupsd from 'rename' accesses on the file /etc/cups/printers.conf.
Summary: SELinux is preventing /usr/sbin/cupsd from 'rename' accesses on the file /etc...
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 17
Hardware: i686
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:15b8829ed9f3f5a59dc4c98aefd...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-07-07 16:28 UTC by antonio montagnani
Modified: 2012-07-09 08:34 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-07-09 08:32:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description antonio montagnani 2012-07-07 16:28:01 UTC
libreport version: 2.0.10
executable:     /usr/bin/python2.7
hashmarkername: setroubleshoot
kernel:         3.4.4-3.fc17.i686.PAE
time:           sab 07 lug 2012 18:26:19 CEST

description:
:SELinux is preventing /usr/sbin/cupsd from 'rename' accesses on the file /etc/cups/printers.conf.
:
:*****  Plugin restorecon (99.5 confidence) suggests  *************************
:
:If si desidera sistemare l'etichetta. 
:L'etichetta predefinita di /etc/cups/printers.conf dovrebbe essere cupsd_rw_etc_t.
:Then è possibile avviare restorecon.
:Do
:# /sbin/restorecon -v /etc/cups/printers.conf
:
:*****  Plugin catchall (1.49 confidence) suggests  ***************************
:
:If si crede che cupsd dovrebbe avere possibilità di accesso rename sui printers.conf file in modo predefinito.
:Then si dovrebbe riportare il problema come bug.
:E' possibile generare un modulo di politica locale per consentire questo accesso.
:Do
:consentire questo accesso per il momento eseguendo:
:# 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                unconfined_u:object_r:cupsd_etc_t:s0
:Target Objects                /etc/cups/printers.conf [ file ]
:Source                        cupsd
:Source Path                   /usr/sbin/cupsd
:Port                          <Sconosciuto>
:Host                          (removed)
:Source RPM Packages           cups-1.5.2-12.fc17.i686
:Target RPM Packages           cups-1.5.2-12.fc17.i686
:Policy RPM                    selinux-policy-3.10.0-134.fc17.noarch
:Selinux Enabled               True
:Policy Type                   targeted
:Enforcing Mode                Enforcing
:Host Name                     (removed)
:Platform                      Linux (removed) 3.4.4-3.fc17.i686.PAE #1 SMP Tue
:                              Jun 26 21:11:45 UTC 2012 i686 i686
:Alert Count                   1
:First Seen                    sab 07 lug 2012 18:01:02 CEST
:Last Seen                     sab 07 lug 2012 18:01:02 CEST
:Local ID                      d0227eba-2c1b-4d28-b614-dae2b21b5634
:
:Raw Audit Messages
:type=AVC msg=audit(1341676862.306:83): avc:  denied  { rename } for  pid=1251 comm="cupsd" name="printers.conf" dev="dm-1" ino=263790 scontext=system_u:system_r:cupsd_t:s0-s0:c0.c1023 tcontext=unconfined_u:object_r:cupsd_etc_t:s0 tclass=file
:
:
:type=SYSCALL msg=audit(1341676862.306:83): arch=i386 syscall=rename success=no exit=EACCES a0=bfcfbaec a1=bfcfb67c a2=b7760ff4 a3=bfcfbaec items=0 ppid=1 pid=1251 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,rename
:
:audit2allowunable to open /sys/fs/selinux/policy:  Permission denied
:
:
:audit2allow -Runable to open /sys/fs/selinux/policy:  Permission denied
:
:

Comment 1 Miroslav Grepl 2012-07-09 08:32:26 UTC
# /sbin/restorecon -v /etc/cups/printers.conf

Comment 2 Miroslav Grepl 2012-07-09 08:34:31 UTC
If you see it again, please reopen.


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