| Summary: | SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /usr/share/man/man1/fc-cache.1.gz. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Eric Blake <eblake> |
| Component: | prelink | Assignee: | Jakub Jelinek <jakub> |
| Status: | CLOSED EOL | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 19 | CC: | dominick.grift, dwalsh, jakub, mads, mgrepl, vonbrand |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:d1c7bac448e54f08024d75cce997562ccc2e01f8b6df81f6cd8ba168d316acb5 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-02-17 13:47:03 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
I have been seeing this as well along with:
avc: denied { read } for pid=8154 comm="prelink" path="/etc/pki/tls/certs/Makefile" dev=dm-2 ino=133050 scontext=staff_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:cert_t:s0 tclass=file
----
Is /usr/share/man/man1/fc-scan.1.gz marked as an executable? /etc/pki/tls/certs/Makefile? stat /etc/pki/tls/certs/Makefile File: `/etc/pki/tls/certs/Makefile' Size: 2242 Blocks: 8 IO Block: 4096 regular file Device: fd02h/64770d Inode: 133286 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Context: system_u:object_r:cert_t:s0 Access: 2011-06-11 11:25:58.797175858 +0200 Modify: 2011-06-09 16:30:05.000000000 +0200 Change: 2011-06-11 11:03:13.730160637 +0200 Birth: - stat /usr/share/man/man1/fc-scan.1.gz File: `/usr/share/man/man1/fc-scan.1.gz' Size: 705 Blocks: 8 IO Block: 4096 regular file Device: fd02h/64770d Inode: 1969953 Links: 1 Access: (0644/-rw-r--r--) Uid: ( 0/ root) Gid: ( 0/ root) Context: system_u:object_r:man_t:s0 Access: 2011-06-13 13:39:00.655251395 +0200 Modify: 2011-06-02 02:23:10.000000000 +0200 Change: 2011-06-02 09:24:37.534373875 +0200 Birth: - I guess this indicates that it is a leak. I just got this in rawhide, so it seems like it haven't been plugged yet. /me wonders why prelink reads man pages and Makefile. That shouldn't be a security issue but it seems like a bug in prelink. I think prelink is examining files that have executable set on them and then checking if they are binaries. This bug appears to have been reported against 'rawhide' during the Fedora 19 development cycle. Changing version to '19'. (As we did not run this process for some time, it could affect also pre-Fedora 19 development cycle bugs. We are very sorry. It will help us with cleanup during Fedora 19 End Of Life. Thank you.) More information and reason for this action is here: https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora19 This message is a notice that Fedora 19 is now at end of life. Fedora has stopped maintaining and issuing updates for Fedora 19. It is Fedora's policy to close all bug reports from releases that are no longer maintained. Approximately 4 (four) weeks from now this bug will be closed as EOL if it remains open with a Fedora 'version' of '19'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version. Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 19 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. Fedora 19 changed to end-of-life (EOL) status on 2015-01-06. Fedora 19 is no longer maintained, which means that it will not receive any further security or bug fix updates. As a result we are closing this bug. If you can reproduce this bug against a currently maintained version of Fedora please feel free to reopen this bug against that version. If you are unable to reopen this bug, please file a new report against the current release. If you experience problems, please add a comment to this bug. Thank you for reporting this bug and we are sorry it could not be fixed. |
SELinux is preventing /usr/sbin/prelink from 'read' accesses on the file /usr/share/man/man1/fc-cache.1.gz. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that prelink should be allowed read access on the fc-cache.1.gz 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 unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 Target Context system_u:object_r:man_t:s0 Target Objects /usr/share/man/man1/fc-cache.1.gz [ file ] Source prelink Source Path /usr/sbin/prelink Port <Unknown> Host (removed) Source RPM Packages prelink-0.4.5-1.fc15 Target RPM Packages fontconfig-2.8.0-3.fc15 Policy RPM selinux-policy-3.9.16-24.fc16 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.39-1.fc16.i686 #1 SMP Sat May 21 03:08:18 UTC 2011 i686 i686 Alert Count 1 First Seen Sun 12 Jun 2011 03:50:58 PM MDT Last Seen Sun 12 Jun 2011 03:50:58 PM MDT Local ID d09ca9bf-6f83-43d3-bcf1-2df64ff9afcf Raw Audit Messages type=AVC msg=audit(1307915458.238:80): avc: denied { read } for pid=2513 comm="prelink" path="/usr/share/man/man1/fc-cache.1.gz" dev=dm-1 ino=13214 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file type=AVC msg=audit(1307915458.238:80): avc: denied { read } for pid=2513 comm="prelink" path="/usr/share/man/man1/fc-cat.1.gz" dev=dm-1 ino=13215 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file type=AVC msg=audit(1307915458.238:80): avc: denied { read } for pid=2513 comm="prelink" path="/usr/share/man/man1/fc-list.1.gz" dev=dm-1 ino=13216 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file type=AVC msg=audit(1307915458.238:80): avc: denied { read } for pid=2513 comm="prelink" path="/usr/share/man/man1/fc-match.1.gz" dev=dm-1 ino=13217 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file type=AVC msg=audit(1307915458.238:80): avc: denied { read } for pid=2513 comm="prelink" path="/usr/share/man/man1/fc-query.1.gz" dev=dm-1 ino=13218 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file type=AVC msg=audit(1307915458.238:80): avc: denied { read } for pid=2513 comm="prelink" path="/usr/share/man/man1/fc-scan.1.gz" dev=dm-1 ino=13219 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file type=AVC msg=audit(1307915458.238:80): avc: denied { read } for pid=2513 comm="prelink" path="/usr/share/man/man5/fonts-conf.5.gz" dev=dm-1 ino=13220 scontext=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 tcontext=system_u:object_r:man_t:s0 tclass=file type=SYSCALL msg=audit(1307915458.238:80): arch=i386 syscall=execve success=yes exit=0 a0=8056970 a1=bfdd8afc a2=bfddd23c a3=5 items=0 ppid=2511 pid=2513 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=prelink exe=/usr/sbin/prelink subj=unconfined_u:system_r:prelink_t:s0-s0:c0.c1023 key=(null) Hash: prelink,prelink_t,man_t,file,read audit2allow #============= prelink_t ============== allow prelink_t man_t:file read; audit2allow -R #============= prelink_t ============== allow prelink_t man_t:file read;