Bug 2271328

Summary: SELinux is preventing ModemManager from using the 'execmem' accesses on a process.
Product: [Fedora] Fedora Reporter: Dominik 'Rathann' Mierzejewski <dominik>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 40CC: dominik, dwalsh, knazekovan, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: aarch64   
OS: Unspecified   
Whiteboard: abrt_hash:cc05a8e954c212f834ad04b3e80b872022ce61e9091212242b3941ba56fbaa0d;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-02 12:47:34 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:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Dominik 'Rathann' Mierzejewski 2024-03-24 21:37:01 UTC
Description of problem:
Connected a Huawei E220 HSDPA USB modem.
SELinux is preventing ModemManager from using the 'execmem' accesses on a process.

*****  Plugin allow_execmem (91.4 confidence) suggests   *********************

If this issue occurred during normal system operation.
Then this alert could be a serious issue and your system could be compromised.
Do
contact your security administrator and report this issue

*****  Plugin catchall (9.59 confidence) suggests   **************************

If you believe that ModemManager should be allowed execmem access on processes labeled modemmanager_t 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:system_r:modemmanager_t:s0
Target Objects                Unknown [ process ]
Source                        ModemManager
Source Path                   ModemManager
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-40.15-1.fc40.noarch
Local Policy RPM              selinux-policy-targeted-40.15-1.fc40.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.8.1-300.fc40.aarch64 #1 SMP
                              PREEMPT_DYNAMIC Wed Mar 20 05:08:46 UTC 2024
                              aarch64
Alert Count                   1
First Seen                    2024-03-24 22:35:00 CET
Last Seen                     2024-03-24 22:35:00 CET
Local ID                      eb53eef0-ed1d-47f1-8759-710b6b187604

Raw Audit Messages
type=AVC msg=audit(1711316100.747:42098): avc:  denied  { execmem } for  pid=1588 comm="ModemManager" scontext=system_u:system_r:modemmanager_t:s0 tcontext=system_u:system_r:modemmanager_t:s0 tclass=process permissive=1


Hash: ModemManager,modemmanager_t,modemmanager_t,process,execmem

Version-Release number of selected component:
selinux-policy-targeted-40.15-1.fc40.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing ModemManager from using the 'execmem' accesses on a process.
package:        selinux-policy-targeted-40.15-1.fc40.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.8.1-300.fc40.aarch64
comment:        Connected a Huawei E220 HSDPA USB modem.
component:      selinux-policy

Comment 1 Dominik 'Rathann' Mierzejewski 2024-03-24 21:37:03 UTC
Created attachment 2023432 [details]
File: description

Comment 2 Dominik 'Rathann' Mierzejewski 2024-03-24 21:37:05 UTC
Created attachment 2023433 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-05-02 12:47:34 UTC

*** This bug has been marked as a duplicate of bug 2149946 ***