Bug 2036973
| Summary: | SELinux is preventing ModemManager from read, write access on the chr_file wwan0at0. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | David Auer (2nd Account) <dreua+bugzilla2> |
| Component: | selinux-policy | Assignee: | Zdenek Pytela <zpytela> |
| Status: | CLOSED DUPLICATE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 35 | CC: | dwalsh, grepl.miroslav, lvrabec, mmalik, omosnace, pkoncity, vmojzis, zpytela |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Unspecified | ||
| Whiteboard: | abrt_hash:e74a87de15577dc59091ce6fe1203df3943f72f9c30f7d9cea88d56097a33fb8;VARIANT_ID=workstation; | ||
| Fixed In Version: | Doc Type: | If docs needed, set a value | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-01-12 18:21:55 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: | |||
Comes in pairs with: #2036972 *** This bug has been marked as a duplicate of bug 1961571 *** |
Description of problem: On each boot (ThinkPad L14) SELinux is preventing ModemManager from read, write access on the chr_file wwan0at0. ***** Plugin device (91.4 confidence) suggests **************************** If you want to allow ModemManager to have read write access on the wwan0at0 chr_file Then you need to change the label on wwan0at0 to a type of a similar device. Do # semanage fcontext -a -t SIMILAR_TYPE 'wwan0at0' # restorecon -v 'wwan0at0' ***** Plugin catchall (9.59 confidence) suggests ************************** If you believe that ModemManager should be allowed read write access on the wwan0at0 chr_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 'ModemManager' --raw | audit2allow -M my-ModemManager # semodule -X 300 -i my-ModemManager.pp Additional Information: Source Context system_u:system_r:modemmanager_t:s0 Target Context system_u:object_r:device_t:s0 Target Objects wwan0at0 [ chr_file ] Source ModemManager Source Path ModemManager Port <Unknown> Host (removed) Source RPM Packages Target RPM Packages SELinux Policy RPM selinux-policy-targeted-35.7-1.fc35.noarch Local Policy RPM selinux-policy-targeted-35.7-1.fc35.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.15.12-200.fc35.x86_64 #1 SMP Wed Dec 29 15:03:38 UTC 2021 x86_64 x86_64 Alert Count 252 First Seen 2021-10-07 09:00:02 CEST Last Seen 2022-01-04 09:00:46 CET Local ID 243819de-e975-4e69-937f-6fbc88ed1c2b Raw Audit Messages type=AVC msg=audit(1641283246.246:239): avc: denied { read write } for pid=3264 comm="ModemManager" name="wwan0at0" dev="devtmpfs" ino=724 scontext=system_u:system_r:modemmanager_t:s0 tcontext=system_u:object_r:device_t:s0 tclass=chr_file permissive=0 Hash: ModemManager,modemmanager_t,device_t,chr_file,read,write Version-Release number of selected component: selinux-policy-targeted-35.7-1.fc35.noarch Additional info: component: selinux-policy reporter: libreport-2.15.2 hashmarkername: setroubleshoot kernel: 5.15.12-200.fc35.x86_64 type: libreport Potential duplicate: bug 1712324