| Summary: | SELinux is preventing /usr/bin/python from 'setattr' accesses on the directory /sys. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 15 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:d5f4d999dfa7d4190d29295f9b636c12584e9dfeb9f995ba15835e315241c436 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-17 15:58:17 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
Fixed in selinux-policy-3.9.16-10.fc15 |
SELinux is preventing /usr/bin/python from 'setattr' accesses on the directory /sys. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that python should be allowed setattr access on the sys directory 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 yum /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:system_r:mock_t:s0-s0:c0.c1023 Target Context system_u:object_r:sysfs_t:s0 Target Objects /sys [ dir ] Source yum Source Path /usr/bin/python Port <Neznámé> Host (removed) Source RPM Packages python-2.7.1-6.fc15 Target RPM Packages filesystem-2.4.37-1.fc15 Policy RPM selinux-policy-3.9.16-6.fc15 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.38-1.fc15.x86_64 #1 SMP Tue Mar 15 05:29:00 UTC 2011 x86_64 x86_64 Alert Count 1 First Seen Pá 1. duben 2011, 13:26:17 CEST Last Seen Pá 1. duben 2011, 13:26:17 CEST Local ID f9144423-7986-409c-94be-0c90e7c48625 Raw Audit Messages type=AVC msg=audit(1301657177.256:78): avc: denied { setattr } for pid=2917 comm="yum" name="/" dev=sysfs ino=1 scontext=unconfined_u:system_r:mock_t:s0-s0:c0.c1023 tcontext=system_u:object_r:sysfs_t:s0 tclass=dir type=SYSCALL msg=audit(1301657177.256:78): arch=x86_64 syscall=chown success=yes exit=0 a0=4dcb720 a1=0 a2=0 a3=2 items=0 ppid=2857 pid=2917 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts0 ses=1 comm=yum exe=/usr/bin/python subj=unconfined_u:system_r:mock_t:s0-s0:c0.c1023 key=(null) Hash: yum,mock_t,sysfs_t,dir,setattr audit2allow #============= mock_t ============== allow mock_t sysfs_t:dir setattr; audit2allow -R #============= mock_t ============== allow mock_t sysfs_t:dir setattr;