Bug 543437 - SELinux is preventing /bin/cp "read" access on /var/lib/misc/prelink.full.
Summary: SELinux is preventing /bin/cp "read" access on /var/lib/misc/prelink.full.
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 12
Hardware: i386
OS: Linux
low
medium
Target Milestone: ---
Assignee: Daniel Walsh
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: setroubleshoot_trace_hash:ed065898e77...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-12-02 11:53 UTC by edo
Modified: 2010-02-05 18:09 UTC (History)
24 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-12-07 22:47:32 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
my messages received from SELinux related (I think) to this bug (7.10 KB, text/plain)
2009-12-03 16:46 UTC, John Murphy
no flags Details

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


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