| Summary: | SELinux is preventing /sbin/setfiles from 'mac_admin' accesses on the capability2 Unknown. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Hicham HAOUARI <hicham.haouari> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 14 | CC: | dwalsh, mgrepl |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | setroubleshoot_trace_hash:fbb928db17384b5f75f6660c0e3824e770d22334a99c2c4b8e2d8013d43b482f | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-05-10 11:53: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: | |
Did you execute the 'chcon' command? This means you tried to set a context via chcon that the kernel/policy does not know about. For example: chcon -t abc_exec_t /bin/ps |
SELinux is preventing /sbin/setfiles from 'mac_admin' accesses on the capability2 Unknown. ***** Plugin catchall (100. confidence) suggests *************************** If you believe that setfiles should be allowed mac_admin access on the Unknown capability2 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 restorecon /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1 023 Target Context unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1 023 Target Objects Unknown [ capability2 ] Source restorecon Source Path /sbin/setfiles Port <Unknown> Host (removed) Source RPM Packages python-2.7-8.fc14.1 Target RPM Packages Policy RPM selinux-policy-3.9.7-31.fc14 Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 2.6.35.11-83.fc14.i686 #1 SMP Mon Feb 7 07:04:18 UTC 2011 i686 i686 Alert Count 5 First Seen Fri 04 Mar 2011 02:47:49 AM WET Last Seen Fri 04 Mar 2011 03:04:21 AM WET Local ID 51c878dd-b86f-4b35-b218-86977250569a Raw Audit Messages type=AVC msg=audit(1299207861.195:74): avc: denied { mac_admin } for pid=4813 comm="yum" capability=33 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=capability2 type=SYSCALL msg=audit(1299207861.195:74): arch=i386 syscall=lsetxattr success=no exit=EINVAL a0=15edd930 a1=47d142e7 a2=15f66d78 a3=31 items=0 ppid=4756 pid=4813 auid=500 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts7 ses=1 comm=yum exe=/usr/bin/python subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null) Hash: restorecon,unconfined_t,unconfined_t,capability2,mac_admin audit2allow #============= unconfined_t ============== allow unconfined_t self:capability2 mac_admin; audit2allow -R #============= unconfined_t ============== allow unconfined_t self:capability2 mac_admin;