| Summary: | SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /usr/lib64/realmd/realmd. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Bahtiar `kalkin` Gadimov <bahtiar> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 20 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:0ce02333e77758f3346c5725945a00ff5c988f139c86dd672cad4f763ad56d1f | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-12-04 14:16:18 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Is prelink mislabeled? ls -lZ /usr/sbin/prelink restorecon -v /usr/sbin/prelink -> 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? 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. |
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