Bug 1066093
Summary: | SELinux is preventing /usr/bin/bash from 'getattr' accesses on the file /proc/<pid>/environ. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Peter Schiffer <pschiffe> |
Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
Status: | CLOSED ERRATA | 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:566ae5d91190ef234a5f5430c760b408c8c1eae2a8ec50bacace80f003fd21b8 | ||
Fixed In Version: | selinux-policy-3.12.1-127.fc20 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-03-12 12:19:47 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Peter Schiffer
2014-02-17 16:38:42 UTC
Here's the second selinux report because of the same problem: SELinux is preventing /usr/bin/cat from read access on the file environ. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that cat should be allowed read access on the environ 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 cat /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:pegasus_openlmi_storage_t:s0 Target Context system_u:system_r:init_t:s0 Target Objects environ [ file ] Source cat Source Path /usr/bin/cat Port <Unknown> Host work-ntb Source RPM Packages coreutils-8.21-20.fc20.x86_64 Target RPM Packages Policy RPM selinux-policy-3.12.1-124.fc20.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name work-ntb Platform Linux work-ntb 3.12.10-300.fc20.x86_64 #1 SMP Thu Feb 6 22:11:48 UTC 2014 x86_64 x86_64 Alert Count 12 First Seen 2014-02-12 13:43:35 CET Last Seen 2014-02-17 17:35:56 CET Local ID e68ace0e-3d70-4c22-93c2-f00e8d691951 Raw Audit Messages type=AVC msg=audit(1392654956.755:944): avc: denied { read } for pid=19186 comm="cat" name="environ" dev="proc" ino=1130 scontext=system_u:system_r:pegasus_openlmi_storage_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file type=AVC msg=audit(1392654956.755:944): avc: denied { open } for pid=19186 comm="cat" path="/proc/1/environ" dev="proc" ino=1130 scontext=system_u:system_r:pegasus_openlmi_storage_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file type=SYSCALL msg=audit(1392654956.755:944): arch=x86_64 syscall=open success=yes exit=ENXIO a0=7fff2bbb3ee5 a1=0 a2=1fffffffffff0000 a3=347de85ad0 items=0 ppid=19174 pid=19186 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=cat exe=/usr/bin/cat subj=system_u:system_r:pegasus_openlmi_storage_t:s0 key=(null) Hash: cat,pegasus_openlmi_storage_t,init_t,file,read commit 6b327d37f526962fd2ca018ea8d5d73ef51d7ffe Author: Miroslav Grepl <mgrepl> Date: Tue Feb 18 14:14:38 2014 +0100 Allow pegasus_openlmi_storage_t to read /proc/1/environ selinux-policy-3.12.1-126.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/selinux-policy-3.12.1-126.fc20 Package selinux-policy-3.12.1-126.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-126.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-126.fc20 then log in and leave karma (feedback). Package selinux-policy-3.12.1-127.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing selinux-policy-3.12.1-127.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2014-2801/selinux-policy-3.12.1-127.fc20 then log in and leave karma (feedback). selinux-policy-3.12.1-127.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. |