| Summary: | SELinux is preventing qemu-system-x86 from 'read' accesses on the file +usb:2-1:1.0. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | lnie <lnie> |
| Component: | selinux-policy | Assignee: | Miroslav Grepl <mgrepl> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba, v |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:ffcdb9988f16f8a88ff74a11029de7affefeac0f779825f0f0aec5a4e34acee0;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-04-27 12:03:22 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
*** This bug has been marked as a duplicate of bug 1276873 *** Get the same problem, with version selinux-policy-3.13.1-191.14.fc24.noarch I think this shouldn't be marked as duplicated as the fedora versions are not the same, this is for version 24 and the other is for 23. |
Description of problem: After create a bootable usb disk using dd command,and do a installation on a kvm-based VM,you will get this AVC and a "no bootable device " on the VM screen immediately .This is really annoying and I have to do "setenforce 0" to start my installation. SELinux is preventing qemu-system-x86 from 'read' accesses on the file +usb:2-1:1.0. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that qemu-system-x86 should be allowed read access on the +usb:2-1:1.0 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 qemu-system-x86 /var/log/audit/audit.log | audit2allow -M mypol # semodule -i mypol.pp Additional Information: Source Context system_u:system_r:svirt_t:s0:c519,c701 Target Context system_u:object_r:udev_var_run_t:s0 Target Objects +usb:2-1:1.0 [ file ] Source qemu-system-x86 Source Path qemu-system-x86 Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-179.fc24.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 4.5.0-0.rc7.git0.2.fc24.x86_64 #1 SMP Tue Mar 8 02:20:08 UTC 2016 x86_64 x86_64 Alert Count 14 First Seen 2016-04-27 10:42:08 CST Last Seen 2016-04-27 10:42:08 CST Local ID 0efbc2e3-0bfd-42db-ae87-072b38235fd3 Raw Audit Messages type=AVC msg=audit(1461724928.915:445): avc: denied { read } for pid=2865 comm="qemu-system-x86" name="+usb:2-1:1.0" dev="tmpfs" ino=17617 scontext=system_u:system_r:svirt_t:s0:c519,c701 tcontext=system_u:object_r:udev_var_run_t:s0 tclass=file permissive=0 Hash: qemu-system-x86,svirt_t,udev_var_run_t,file,read Version-Release number of selected component: selinux-policy-3.13.1-179.fc24.noarch Additional info: reporter: libreport-2.6.4 hashmarkername: setroubleshoot kernel: 4.5.0-0.rc7.git0.2.fc24.x86_64 type: libreport Potential duplicate: bug 1276873