Bug 838234 - SELinux is preventing /usr/sbin/cupsd from 'rename' accesses on the file /etc/cups/printers.conf.
SELinux is preventing /usr/sbin/cupsd from 'rename' accesses on the file /etc...
Product: Fedora
Classification: Fedora
Component: selinux-policy (Show other bugs)
i686 Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Miroslav Grepl
Fedora Extras Quality Assurance
Depends On:
  Show dependency treegraph
Reported: 2012-07-07 12:28 EDT by antonio montagnani
Modified: 2012-07-09 04:34 EDT (History)
3 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2012-07-09 04:32:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description antonio montagnani 2012-07-07 12:28:01 EDT
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

: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.
:# /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.
: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 04:32:26 EDT
# /sbin/restorecon -v /etc/cups/printers.conf
Comment 2 Miroslav Grepl 2012-07-09 04:34:31 EDT
If you see it again, please reopen.

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