Bug 926885
| Summary: | SELinux is preventing /usr/bin/cpupower from using the 'sys_rawio' capabilities. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Davi <dsboger> |
| 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: | 18 | CC: | bugzilla, dominick.grift, dwalsh, fweimer, jeder, julien.bonachera, mgrepl, ms, timur.kristof |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:36c81130737f31bcac1074e380e0980ec9d2f66358db56b3befbdb041c33d4d8 | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-04-18 02:49:29 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: | |||
Fixed in selinux-policy-3.11.1-88.fc18.noarch Description of problem: tuned was restarted during an update Additional info: hashmarkername: setroubleshoot kernel: 3.8.4-202.fc18.x86_64 type: libreport Description of problem: Just started the tuned service and than the error occurs Additional info: hashmarkername: setroubleshoot kernel: 3.8.4-202.fc18.x86_64 type: libreport Description of problem: Started the tuned service Additional info: hashmarkername: setroubleshoot kernel: 3.8.4-202.fc18.x86_64 type: libreport Description of problem: Step to reprocude, on a clean fedora install: yum install tuned service tuned start Additional info: hashmarkername: setroubleshoot kernel: 3.8.5-201.fc18.x86_64 type: libreport Description of problem: Used tuned to set powersave profile Additional info: hashmarkername: setroubleshoot kernel: 3.8.5-201.fc18.x86_64 type: libreport selinux-policy-3.11.1-90.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/selinux-policy-3.11.1-90.fc18 Package selinux-policy-3.11.1-90.fc18: * should fix your issue, * was pushed to the Fedora 18 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.11.1-90.fc18' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-5742/selinux-policy-3.11.1-90.fc18 then log in and leave karma (feedback). selinux-policy-3.11.1-90.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: changed profile with tuned-adm SELinux is preventing /usr/bin/cpupower from using the 'sys_rawio' capabilities. ***** Plugin catchall (100. confidence) suggests *************************** If você acredita que o cpupower deva ser permitido a capacidade de sys_rawio por default. Then você precisa reportar este como um erro. Você pode gerar um módulo de política local para permitir este acesso. Do permitir este acesso agora executando: # grep cpupower /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:tuned_t:s0 Target Context system_u:system_r:tuned_t:s0 Target Objects [ capability ] Source cpupower Source Path /usr/bin/cpupower Port <Unknown> Host (removed) Source RPM Packages kernel-tools-3.8.3-203.fc18.x86_64 Target RPM Packages Policy RPM selinux-policy-3.11.1-86.fc18.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 3.8.3-203.fc18.x86_64 #1 SMP Mon Mar 18 12:59:28 UTC 2013 x86_64 x86_64 Alert Count 5 First Seen 2013-03-22 08:39:10 BRT Last Seen 2013-03-23 17:59:25 BRT Local ID 3f0056f0-6a67-447e-b455-1ccb1685f879 Raw Audit Messages type=AVC msg=audit(1364072365.609:639): avc: denied { sys_rawio } for pid=30919 comm="cpupower" capability=17 scontext=system_u:system_r:tuned_t:s0 tcontext=system_u:system_r:tuned_t:s0 tclass=capability type=SYSCALL msg=audit(1364072365.609:639): arch=x86_64 syscall=open success=no exit=EPERM a0=7fffafcfec10 a1=0 a2=7fffafcfec1e a3=3 items=0 ppid=701 pid=30919 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 ses=4294967295 tty=(none) comm=cpupower exe=/usr/bin/cpupower subj=system_u:system_r:tuned_t:s0 key=(null) Hash: cpupower,tuned_t,tuned_t,capability,sys_rawio audit2allow #============= tuned_t ============== allow tuned_t self:capability sys_rawio; audit2allow -R require { type tuned_t; class capability sys_rawio; } #============= tuned_t ============== allow tuned_t self:capability sys_rawio; Additional info: hashmarkername: setroubleshoot kernel: 3.8.3-203.fc18.x86_64 type: libreport