| Summary: | SELinux is preventing usbguard from 'open' accesses on the file /dev/shm/qb-usbguard-request-8510-9852-11-header. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Radovan Sroka <rsroka> |
| Component: | selinux-policy | Assignee: | Lukas Vrabec <lvrabec> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 24 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, plautrba |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:1d9acad21154efc51e7f5432e17b7b39cbdee074706172ac892f7f1da9fd52ea;VARIANT_ID=workstation; | ||
| Fixed In Version: | selinux-policy-3.13.1-191.20.fc24 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2016-11-10 03:30:16 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
selinux-policy-3.13.1-191.20.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-7ce27629b3 selinux-policy-3.13.1-191.20.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-7ce27629b3 selinux-policy-3.13.1-191.20.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |
Description of problem: Description of the problem: 1. set user to be staff_t 2. install usbguard 3. touch /etc/usbguard/rules.conf 3. systemctl start usbguard.service && systemctl status usbguard.service #check if running 4. run "usbguard list_devices" Actual Result: "ERROR: IPC connect: service=usbguard: No such file or directory" Expected Result: printed lines of devices OS: f24 Packages: usbguard-0.6.2-1.fc24.x86_64 libqb-1.0-1.fc24.x86_64 selinux-policy-3.13.1-191.16.fc24.noarch SELinux is preventing usbguard from 'open' accesses on the file /dev/shm/qb-usbguard-request-8510-9852-11-header. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that usbguard should be allowed open access on the qb-usbguard-request-8510-9852-11-header 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: # ausearch -c 'usbguard' --raw | audit2allow -M my-usbguard # semodule -X 300 -i my-usbguard.pp Additional Information: Source Context staff_u:staff_r:staff_t:s0:c0.c1023 Target Context system_u:object_r:tmpfs_t:s0 Target Objects /dev/shm/qb-usbguard-request-8510-9852-11-header [ file ] Source usbguard Source Path usbguard Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-191.16.fc24.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name (removed) Platform Linux (removed) 4.7.3-200.fc24.x86_64 #1 SMP Wed Sep 7 17:31:21 UTC 2016 x86_64 x86_64 Alert Count 1 First Seen 2016-09-22 14:00:21 CEST Last Seen 2016-09-22 14:00:21 CEST Local ID 401d4cca-47e9-4b83-b0fd-cff2a0961516 Raw Audit Messages type=AVC msg=audit(1474545621.629:805): avc: denied { open } for pid=9852 comm="usbguard" path="/dev/shm/qb-usbguard-request-8510-9852-11-header" dev="tmpfs" ino=92865 scontext=staff_u:staff_r:staff_t:s0:c0.c1023 tcontext=system_u:object_r:tmpfs_t:s0 tclass=file permissive=1 Hash: usbguard,staff_t,tmpfs_t,file,open Version-Release number of selected component: selinux-policy-3.13.1-191.16.fc24.noarch Additional info: reporter: libreport-2.7.2 hashmarkername: setroubleshoot kernel: 4.7.3-200.fc24.x86_64 type: libreport