Bug 708867

Summary: SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /etc/gconf/schemas/rhythmbox.schemas.
Product: [Fedora] Fedora Reporter: Eric Blake <eblake>
Component: selinux-policyAssignee: Miroslav Grepl <mgrepl>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: dominick.grift, dwalsh, mgrepl
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:5648fd8f6cec5bc6e4c2c0ba36e08553ba82331a8df7487a0fbcd2dedd1ef06d
Fixed In Version: selinux-policy-3.9.16-27.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-10 08:39:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eric Blake 2011-05-29 23:17:59 UTC
SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /etc/gconf/schemas/rhythmbox.schemas.

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

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

Additional Information:
Source Context                unconfined_u:system_r:prelink_t:s0-s0:c0.c1023
Target Context                system_u:object_r:gconf_etc_t:s0
Target Objects                /etc/gconf/schemas/rhythmbox.schemas [ file ]
Source                        prelink
Source Path                   /usr/sbin/prelink
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           prelink-0.4.5-1.fc15
Target RPM Packages           rhythmbox-2.90.1-7.git20110329.fc16
Policy RPM                    selinux-policy-3.9.16-15.fc16
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 2.6.39-0.rc5.git5.0.fc16.i686 #1
                              SMP Mon May 2 03:34:44 UTC 2011 i686 i686
Alert Count                   1
First Seen                    Sun 29 May 2011 04:28:07 PM MDT
Last Seen                     Sun 29 May 2011 04:28:07 PM MDT
Local ID                      bafb6f64-1a00-4402-bc1b-bff78bc684d8

Raw Audit Messages
type=AVC msg=audit(1306708087.355:56): avc:  denied  { read } for  pid=2053 comm="prelink" path="/etc/gconf/schemas/rhythmbox.schemas" dev=dm-1 ino=56951 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:gconf_etc_t:s0 tclass=file


type=SYSCALL msg=audit(1306708087.355:56): arch=i386 syscall=execve success=yes exit=0 a0=8056970 a1=bfe8ebbc a2=bfe932fc a3=5 items=0 ppid=2051 pid=2053 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=prelink exe=/usr/sbin/prelink subj=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 key=(null)

Hash: prelink,prelink_t,gconf_etc_t,file,read

audit2allow

#============= prelink_t ==============
allow prelink_t gconf_etc_t:file read;

audit2allow -R

#============= prelink_t ==============
allow prelink_t gconf_etc_t:file read;

Comment 1 Dominick Grift 2011-05-30 08:19:54 UTC
It most likely will not need this access.

http://git.fedorahosted.org/git/?p=selinux-policy.git;a=commitdiff;h=c98dcd430eaddde145d07368e40a96c433a377ae

Comment 2 Miroslav Grepl 2011-05-30 08:52:52 UTC
Eric,
was prelink executed from cron when this happened?

Comment 3 Miroslav Grepl 2011-05-30 20:37:47 UTC
Ok, I see the same issue during

# yum update

Fixed in selinux-policy-3.9.16-27.fc15