Bug 2252261 - SELinux is preventing wine-preloader from using the 'execheap' accesses on a process.
Summary: SELinux is preventing wine-preloader from using the 'execheap' accesses on a ...
Keywords:
Status: CLOSED DUPLICATE of bug 2247299
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:1cb53da229f699b9195cecf3fc3...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-30 12:42 UTC by Davide Repetto
Modified: 2023-11-30 14:14 UTC (History)
9 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-11-30 14:14:36 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.73 KB, text/plain)
2023-11-30 12:42 UTC, Davide Repetto
no flags Details
File: os_info (709 bytes, text/plain)
2023-11-30 12:42 UTC, Davide Repetto
no flags Details

Description Davide Repetto 2023-11-30 12:42:11 UTC
Description of problem:
This is related to wine. It happened when I run eMule.
SELinux is preventing wine-preloader from using the 'execheap' accesses on a process.

*****  Plugin allow_execheap (53.1 confidence) suggests   ********************

Se non pensi wine-preloader dovrebbe avere bisogno di mappare la memoria heap che è sia scrivibile che eseguibile.
Then è necessario riportare un bug. Questo è un accesso potenzialmente pericoloso.
Do
contattare il proprio amministratore di sicurezza e riportare il problema.

*****  Plugin catchall_boolean (42.6 confidence) suggests   ******************

Se lo desidera allow selinuxuser to execheap
Then è necessario informare SELinux abilitando il booleano 'selinuxuser_execheap' .

Do
setsebool -P selinuxuser_execheap 1

*****  Plugin catchall (5.76 confidence) suggests   **************************

Se ci credi wine-preloader dovrebbe essere consentito execheap accesso ai processi etichettati unconfined_t per impostazione predefinita.
Then si dovrebbe riportare il problema come bug.
E' possibile generare un modulo di politica locale per consentire questo accesso.
Do
consentire questo accesso per ora eseguendo:
# ausearch -c 'wine-preloader' --raw | audit2allow -M my-$MODULE_NOME
# semodule -X 300 -i miei-winepreloader.pp

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-
                              s0:c0.c1023
Target Context                unconfined_u:unconfined_r:unconfined_t:s0-
                              s0:c0.c1023
Target Objects                Sconosciuto [ process ]
Source                        wine-preloader
Source Path                   wine-preloader
Port                          <Sconosciuto>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-39.2-1.fc39.noarch
Local Policy RPM              selinux-policy-targeted-39.2-1.fc39.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.6.2-201.fc39.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Wed Nov 22 21:31:42 UTC 2023
                              x86_64
Alert Count                   1
First Seen                    2023-11-30 13:39:24 CET
Last Seen                     2023-11-30 13:39:24 CET
Local ID                      fe2384dc-54eb-4bf7-a25f-c46af5190bc7

Raw Audit Messages
type=AVC msg=audit(1701347964.39:3747): avc:  denied  { execheap } for  pid=676894 comm="wine-preloader" scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tclass=process permissive=1


Hash: wine-preloader,unconfined_t,unconfined_t,process,execheap

Version-Release number of selected component:
selinux-policy-targeted-39.2-1.fc39.noarch

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing wine-preloader from using the 'execheap' accesses on a process.
package:        selinux-policy-targeted-39.2-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.6.2-201.fc39.x86_64
comment:        This is related to wine. It happened when I run eMule.
component:      selinux-policy

Comment 1 Davide Repetto 2023-11-30 12:42:13 UTC
Created attachment 2002114 [details]
File: description

Comment 2 Davide Repetto 2023-11-30 12:42:15 UTC
Created attachment 2002115 [details]
File: os_info

Comment 3 Zdenek Pytela 2023-11-30 14:14:36 UTC

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


Note You need to log in before you can comment on or make changes to this bug.