Bug 1040553 - SELinux is preventing /usr/sbin/prelink from 'read' accesses on the chr_file urandom.
Summary: SELinux is preventing /usr/sbin/prelink from 'read' accesses on the chr_file ...
Keywords:
Status: CLOSED DUPLICATE of bug 1040515
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 20
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Miroslav Grepl
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c405fd3668579824b79b9690925...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-11 15:51 UTC by James Cape
Modified: 2013-12-11 21:21 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-11 21:21:32 UTC
Type: ---


Attachments (Terms of Use)

Description James Cape 2013-12-11 15:51:48 UTC
Description of problem:
Prelink run kicked this off.
SELinux is preventing /usr/sbin/prelink from 'read' accesses on the chr_file urandom.

*****  Plugin catchall_boolean (47.5 confidence) suggests   ******************

If you want to allow authlogin to nsswitch use ldap
Then you must tell SELinux about this by enabling the 'authlogin_nsswitch_use_ldap' boolean.
You can read 'None' man page for more details.
Do
setsebool -P authlogin_nsswitch_use_ldap 1

*****  Plugin catchall_boolean (47.5 confidence) suggests   ******************

If you want to allow global to ssp
Then you must tell SELinux about this by enabling the 'global_ssp' boolean.
You can read 'None' man page for more details.
Do
setsebool -P global_ssp 1

*****  Plugin catchall (6.38 confidence) suggests   **************************

If you believe that prelink should be allowed read access on the urandom chr_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                system_u:system_r:prelink_cron_system_t:s0-s0:c0.c
                              1023
Target Context                system_u:object_r:urandom_device_t:s0
Target Objects                urandom [ chr_file ]
Source                        prelink
Source Path                   /usr/sbin/prelink
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           prelink-0.5.0-1.fc20.x86_64
Target RPM Packages           
Policy RPM                    selinux-policy-3.12.1-106.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 3.11.10-300.fc20.x86_64 #1 SMP Fri
                              Nov 29 19:16:48 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-12-11 09:45:06 EST
Last Seen                     2013-12-11 09:45:06 EST
Local ID                      83e844f4-3e8f-4ceb-8a7c-4ccc74f8bc10

Raw Audit Messages
type=AVC msg=audit(1386773106.20:2850): avc:  denied  { read } for  pid=26155 comm="prelink" name="urandom" dev="devtmpfs" ino=1033 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:urandom_device_t:s0 tclass=chr_file


type=SYSCALL msg=audit(1386773106.20:2850): arch=x86_64 syscall=open success=no exit=EACCES a0=505419 a1=0 a2=358 a3=4000000000 items=0 ppid=26146 pid=26155 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=49 tty=(none) comm=prelink exe=/usr/sbin/prelink subj=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 key=(null)

Hash: prelink,prelink_cron_system_t,urandom_device_t,chr_file,read

Additional info:
reporter:       libreport-2.1.9
hashmarkername: setroubleshoot
kernel:         3.11.10-300.fc20.x86_64
type:           libreport

Comment 1 Daniel Walsh 2013-12-11 21:21:32 UTC

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


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