Bug 2195846

Summary: SELinux is preventing ModemManager from using the 'execmem' accesses on a process.
Product: [Fedora] Fedora Reporter: winq <winq2008>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 38CC: dwalsh, lvrabec, mmalik, nknazeko, omosnacek, pkoncity, vmojzis, winq2008, zpytela
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:cc05a8e954c212f834ad04b3e80b872022ce61e9091212242b3941ba56fbaa0d;VARIANT_ID=;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-05-09 08:01:45 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 winq 2023-05-06 03:01:09 UTC
Description of problem:
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   **************************

如果你相信 ModemManager应该允许_BASE_PATH execmem 访问标记的进程 $TARGET默认为_TYPE。
Then 应该将这个情况作为 bug 报告。
可以生成本地策略模块以允许此访问。
Do
暂时允许此访问权限执行:
# 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                未知 [ process ]
Source                        ModemManager
Source Path                   ModemManager
Port                          <未知>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-38.12-1.fc38.noarch
Local Policy RPM              selinux-policy-targeted-38.12-1.fc38.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.2.14-300.fc38.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Mon May 1 00:55:28 UTC 2023 x86_64
Alert Count                   1
First Seen                    2023-05-06 10:35:12 CST
Last Seen                     2023-05-06 10:35:12 CST
Local ID                      37cae2ec-c07d-4342-b476-94b2f374e9b3

Raw Audit Messages
type=AVC msg=audit(1683340512.898:100): avc:  denied  { execmem } for  pid=698 comm="ModemManager" scontext=system_u:system_r:modemmanager_t:s0 tcontext=system_u:system_r:modemmanager_t:s0 tclass=process permissive=0


Hash: ModemManager,modemmanager_t,modemmanager_t,process,execmem

Version-Release number of selected component:
selinux-policy-targeted-38.12-1.fc38.noarch

Additional info:
reporter:       libreport-2.17.9
kernel:         6.2.14-300.fc38.x86_64
type:           libreport
reason:         SELinux is preventing ModemManager from using the 'execmem' accesses on a process.
package:        selinux-policy-targeted-38.12-1.fc38.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
component:      selinux-policy

Comment 1 winq 2023-05-06 03:01:11 UTC
Created attachment 1962686 [details]
File: description

Comment 2 winq 2023-05-06 03:01:13 UTC
Created attachment 1962687 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-05-09 08:01:45 UTC

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