Bug 675642 - SELinux is preventing /sbin/chkconfig from 'getattr' accesses on the file /etc/rc.d/init.d/cups.
Summary: SELinux is preventing /sbin/chkconfig from 'getattr' accesses on the file /et...
Keywords:
Status: CLOSED DUPLICATE of bug 675278
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:8df85cff124...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-07 06:46 UTC by Luya Tshimbalanga
Modified: 2011-02-10 05:03 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-07 10:04:20 UTC
Type: ---


Attachments (Terms of Use)

Description Luya Tshimbalanga 2011-02-07 06:46:18 UTC
SELinux is preventing /sbin/chkconfig from 'getattr' accesses on the file /etc/rc.d/init.d/cups.

*****  Plugin catchall (100. confidence) suggests  ***************************

If you believe that chkconfig should be allowed getattr access on the cups 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 chkconfig /var/log/audit/audit.log | audit2allow -M mypol
# semodule -i mypol.pp

Additional Information:
Source Context                system_u:system_r:gnomeclock_t:s0-s0:c0.c1023
Target Context                system_u:object_r:cupsd_initrc_exec_t:s0
Target Objects                /etc/rc.d/init.d/cups [ file ]
Source                        chkconfig
Source Path                   /sbin/chkconfig
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           chkconfig-1.3.49-1.fc15
Target RPM Packages           cups-1.4.6-8.fc15
Policy RPM                    selinux-policy-3.9.13-8.fc15
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.37-2.fc15.i686 #1
                              SMP Fri Jan 7 15:46:20 UTC 2011 i686 i686
Alert Count                   3
First Seen                    Thu 03 Feb 2011 11:24:45 PM PST
Last Seen                     Tue 22 Feb 2011 11:26:26 PM PST
Local ID                      a76b9f6d-61f8-4748-8131-768c9c23e4bc

Raw Audit Messages
type=AVC msg=audit(1298445986.335:430): avc:  denied  { getattr } for  pid=3213 comm="chkconfig" path="/etc/rc.d/init.d/cups" dev=dm-0 ino=263410 scontext=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cupsd_initrc_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1298445986.335:430): arch=i386 syscall=stat64 success=no exit=EACCES a0=bfb09efc a1=bfb09df0 a2=4fcafff4 a3=3 items=0 ppid=3211 pid=3213 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm=chkconfig exe=/sbin/chkconfig subj=system_u:system_r:gnomeclock_t:s0-s0:c0.c1023 key=(null)

Hash: chkconfig,gnomeclock_t,cupsd_initrc_exec_t,file,getattr

audit2allow

#============= gnomeclock_t ==============
allow gnomeclock_t cupsd_initrc_exec_t:file getattr;

audit2allow -R

#============= gnomeclock_t ==============
allow gnomeclock_t cupsd_initrc_exec_t:file getattr;

Comment 1 Miroslav Grepl 2011-02-07 10:04:20 UTC

*** This bug has been marked as a duplicate of bug 675278 ***


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