Bug 543437

Summary: SELinux is preventing /bin/cp "read" access on /var/lib/misc/prelink.full.
Product: [Fedora] Fedora Reporter: edo <edosurina>
Component: selinux-policyAssignee: Daniel Walsh <dwalsh>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 12CC: bram_gro, bugsrep, curoli, devel.niks, dony.87, dwalsh, edosurina, fanisatt, heinzl, ivor, jesse_kahtava, jjmurphy, joe_underscore, kleeman10, lukaszlucka, mgrepl, optimal_solution2000, pascalarnold.varniol, pk, rado.kljucevsek, ssanders, uckelman, zenczykowski, zub07513
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard: setroubleshoot_trace_hash:ed065898e77c663f4c7afec41289688de8800ac30dd218c4785b482608767616
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-07 22:47: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:
Embargoed:
Attachments:
Description Flags
my messages received from SELinux related (I think) to this bug none

Description edo 2009-12-02 11:53:42 UTC
Summary:

SELinux is preventing /bin/cp "read" access on /var/lib/misc/prelink.full.

Detailed Description:

[cp has a permissive type (prelink_cron_system_t). This access was not denied.]

SELinux denied access requested by cp. It is not expected that this access is
required by cp and this access may signal an intrusion attempt. It is also
possible that the specific version or configuration of the application is
causing it to require additional access.

Allowing Access:

You can generate a local policy module to allow this access - see FAQ
(http://fedora.redhat.com/docs/selinux-faq-fc5/#id2961385) Please file a bug
report.

Additional Information:

Source Context                system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
                              1023
Target Context                system_u:object_r:prelink_var_lib_t:s0
Target Objects                /var/lib/misc/prelink.full [ file ]
Source                        cp
Source Path                   /bin/cp
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           coreutils-7.6-7.fc12
Target RPM Packages           prelink-0.4.2-4.fc12
Policy RPM                    selinux-policy-3.6.32-49.fc12
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Plugin Name                   catchall
Host Name                     (removed)
Platform                      Linux (removed)
                              2.6.31.6-145.fc12.i686.PAE #1 SMP Sat Nov 21
                              16:12:37 EST 2009 i686 i686
Alert Count                   1
First Seen                    St  2. december 2009, 12:46:08 CET
Last Seen                     St  2. december 2009, 12:46:08 CET
Local ID                      141e6364-2474-4be6-aba8-18c91c903641
Line Numbers                  

Raw Audit Messages            

node=(removed) type=AVC msg=audit(1259754368.428:32): avc:  denied  { read } for  pid=11469 comm="cp" name="prelink.full" dev=dm-0 ino=702 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:prelink_var_lib_t:s0 tclass=file

node=(removed) type=SYSCALL msg=audit(1259754368.428:32): arch=40000003 syscall=5 success=yes exit=4 a0=bfa11f26 a1=28000 a2=0 a3=bfa11f26 items=0 ppid=11462 pid=11469 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=2 comm="cp" exe="/bin/cp" subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)



Hash String generated from  selinux-policy-3.6.32-49.fc12,catchall,cp,prelink_cron_system_t,prelink_var_lib_t,file,read
audit2allow suggests:

#============= prelink_cron_system_t ==============
allow prelink_cron_system_t prelink_var_lib_t:file read;

Comment 1 Daniel Walsh 2009-12-02 12:37:07 UTC
Fixed in selinux-policy-3.6.32-52.fc12.noarch
yum update selinux-policy-targeted --enablerepo=updatest-testing

Comment 2 John Murphy 2009-12-03 16:45:04 UTC
[root@...]# yum update selinux-policy-targeted --enablerepo=updatest-testing
Loaded plugins: presto, refresh-packagekit


Error getting repository data for updatest-testing, repository not found

???

Comment 3 John Murphy 2009-12-03 16:46:41 UTC
Created attachment 375831 [details]
my messages received from SELinux related (I think) to this bug

Comment 4 Maciej Żenczykowski 2010-02-05 18:09:54 UTC
John Murphy: updates-testing not updatest-testing