Bug 1038079 - SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /usr/lib64/realmd/realmd.
Summary: SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /usr...
Keywords:
Status: CLOSED NOTABUG
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:0ce02333e77758f3346c5725945...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-12-04 11:25 UTC by Bahtiar `kalkin` Gadimov
Modified: 2013-12-04 14:16 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-12-04 14:16:18 UTC
Type: ---


Attachments (Terms of Use)

Description Bahtiar `kalkin` Gadimov 2013-12-04 11:25:42 UTC
Description of problem:
SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /usr/lib64/realmd/realmd.

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

If you believe that prelink should be allowed read access on the realmd 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:realmd_exec_t:s0
Target Objects                /usr/lib64/realmd/realmd [ 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           realmd-0.14.6-1.fc20.x86_64
Policy RPM                    selinux-policy-3.12.1-105.fc20.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 3.11.9-300.fc20.x86_64 #1 SMP Wed
                              Nov 20 22:23:25 UTC 2013 x86_64 x86_64
Alert Count                   1
First Seen                    2013-12-04 03:36:08 CET
Last Seen                     2013-12-04 03:36:08 CET
Local ID                      9bda9ea1-3ed1-4ade-8d00-f784c6cebfb4

Raw Audit Messages
type=AVC msg=audit(1386124568.541:7354): avc:  denied  { read } for  pid=7334 comm="prelink" name="realmd" dev="dm-2" ino=2884737 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:realmd_exec_t:s0 tclass=file


type=AVC msg=audit(1386124568.541:7354): avc:  denied  { open } for  pid=7334 comm="prelink" path="/usr/lib64/realmd/realmd" dev="dm-2" ino=2884737 scontext=system_u:system_r:prelink_cron_system_t:s0-s0:c0.c1023 tcontext=system_u:object_r:realmd_exec_t:s0 tclass=file


type=SYSCALL msg=audit(1386124568.541:7354): arch=x86_64 syscall=open success=yes exit=EIO a0=f636a0 a1=0 a2=10d1fd8 a3=7fff703dd900 items=0 ppid=7326 pid=7334 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=133 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,realmd_exec_t,file,read

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

Comment 1 Daniel Walsh 2013-12-04 13:33:42 UTC
Is prelink mislabeled?

ls -lZ /usr/sbin/prelink

restorecon -v /usr/sbin/prelink

Comment 2 Bahtiar `kalkin` Gadimov 2013-12-04 13:47:23 UTC
-> ls -lZ /usr/sbin/prelink
-rwxr-xr-x. root root unconfined_u:object_r:bin_t:s0   /usr/sbin/prelink*
-> restorecon -v /usr/sbin/prelink
restorecon reset /usr/sbin/prelink context unconfined_u:object_r:bin_t:s0->unconfined_u:object_r:prelink_exec_t:s0

Is it just mine system which is broken, or was it delivered mislabeled by Fedora 20?

Comment 3 Daniel Walsh 2013-12-04 14:16:18 UTC
I would think this is just yours.  Not sure how it got mislabeled.  If rpm created the file it should have been labeled correctly.

If it happens to other people, I am sure they will show up soon.


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