Bug 1372962
Summary: | SELinux is preventing mount from 'unlink' accesses on the file utab. | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Mikhail <mikhail.v.gavrilov> |
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: | 25 | CC: | dominick.grift, dwalsh, lvrabec, mgrepl, pavel.raur.pr, plautrba, pschindl, robatino |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Unspecified | ||
Whiteboard: | AcceptedBlocker abrt_hash:1f55b8ccf3493b855b01c3b6b4a718e3cb639eda0b479f562355639e7655ec7f;VARIANT_ID=workstation; | ||
Fixed In Version: | selinux-policy-3.13.1-214.fc25 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-09-21 00:35:53 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: | |||
Bug Depends On: | |||
Bug Blocks: | 1277287 |
Description
Mikhail
2016-09-04 11:38:49 UTC
Looks like the same problem. Happened when I tried to mount or unmount dvd. SELinux is preventing mount from lock access on the file /run/mount/utab.lock. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that mount should be allowed lock access on the utab.lock 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 'mount' --raw | audit2allow -M my-mount # semodule -X 300 -i my-mount.pp Additional Information: Source Context system_u:system_r:udisks2_t:s0 Target Context system_u:object_r:mount_var_run_t:s0 Target Objects /run/mount/utab.lock [ file ] Source mount Source Path mount Port <Unknown> Host localhost.localdomain Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.13.1-211.fc25.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Permissive Host Name dhcp-28-138.brq.redhat.com Platform Linux dhcp-28-138.brq.redhat.com 4.8.0-0.rc6.git0.1.fc25.x86_64 #1 SMP Mon Sep 12 19:16:54 UTC 2016 x86_64 x86_64 Alert Count 3 First Seen 2016-09-15 10:20:10 CEST Last Seen 2016-09-15 10:24:08 CEST Local ID db528475-0cfc-4c7a-9b83-23a06a35df20 Raw Audit Messages type=AVC msg=audit(1473927848.573:296): avc: denied { lock } for pid=2781 comm="mount" path="/run/mount/utab.lock" dev="tmpfs" ino=34245 scontext=system_u:system_r:udisks2_t:s0 tcontext=system_u:object_r:mount_var_run_t:s0 tclass=file permissive=1 Hash: mount,udisks2_t,mount_var_run_t,file,lock I can't mount dvd and usbdisk if selinux is not in Permissive mode. I propose this as betablocker, its violating this criteria: "Automatic mounting of removable media on insertion must work in release-blocking desktops." Fix: https://github.com/fedora-selinux/selinux-policy/commit/f03db1257b911bc97dddb88b488a9b0df2b40848 selinux-policy-3.13.1-214.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-5f88bebc7c selinux-policy-3.13.1-214.fc25 has been pushed to the Fedora 25 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-5f88bebc7c Discussed at 2016-09-19 blocker review meeting: [1]. This bug was accepted as Beta blocker: This bug violates "Automatic mounting of removable media on insertion must work in release-blocking desktops." [1] https://meetbot-raw.fedoraproject.org/fedora-blocker-review/2016-09-19/ selinux-policy-3.13.1-214.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. |