Bug 2300243 - SELinux is preventing /opt/google/chrome-unstable/chrome from using the 'execheap' accesses on a process.
Summary: SELinux is preventing /opt/google/chrome-unstable/chrome from using the 'exec...
Keywords:
Status: CLOSED DUPLICATE of bug 2254434
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: rawhide
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:cd19c2bf87c5a4f706181323404...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-07-28 11:59 UTC by Mikhail
Modified: 2024-07-29 14:18 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-07-29 14:18:04 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (3.11 KB, text/plain)
2024-07-28 11:59 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2024-07-28 11:59 UTC, Mikhail
no flags Details

Description Mikhail 2024-07-28 11:59:07 UTC
Description of problem:
SELinux is preventing /opt/google/chrome-unstable/chrome from using the 'execheap' accesses on a process.

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

If you do not think /opt/google/chrome-unstable/chrome should need to map heap memory that is both writable and executable.
Then you need to report a bug. This is a potentially dangerous access.
Do
contact your security administrator and report this issue.

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

If you want to allow selinuxuser to execheap
Then you must tell SELinux about this by enabling the 'selinuxuser_execheap' boolean.

Do
setsebool -P selinuxuser_execheap 1

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

If you believe that chrome should be allowed execheap access on processes labeled unconfined_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 'chrome' --raw | audit2allow -M my-chrome
# semodule -X 300 -i my-chrome.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                Unknown [ process ]
Source                        chrome
Source Path                   /opt/google/chrome-unstable/chrome
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.11-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.11-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.10.0-d67978318827-with-static-
                              branch-enable-patch+ #29 SMP PREEMPT_DYNAMIC Fri
                              Jul 26 23:39:57 +05 2024 x86_64
Alert Count                   296
First Seen                    2024-07-24 10:56:54 +05
Last Seen                     2024-07-28 13:27:09 +05
Local ID                      0b29c744-e6c9-43c6-99ff-25a4e6c2c221

Raw Audit Messages
type=AVC msg=audit(1722155229.973:658): avc:  denied  { execheap } for  pid=158410 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


type=SYSCALL msg=audit(1722155229.973:658): arch=i386 syscall=capget success=yes exit=0 a0=7ffff000 a1=1000 a2=5 a3=7ffff000 items=0 ppid=158286 pid=158410 auid=1000 uid=1000 gid=1000 euid=1000 suid=1000 fsuid=1000 egid=1000 sgid=1000 fsgid=1000 tty=(none) ses=3 comm=wine-preloader exe=/home/mikhail/.local/share/Steam/steamapps/common/Proton - Experimental/files/bin/wine-preloader subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)

Hash: chrome,unconfined_t,unconfined_t,process,execheap

Version-Release number of selected component:
selinux-policy-targeted-41.11-1.fc41.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /opt/google/chrome-unstable/chrome from using the 'execheap' accesses on a process.
package:        selinux-policy-targeted-41.11-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.10.0-d67978318827-with-static-branch-enable-patch+
component:      selinux-policy

Comment 1 Mikhail 2024-07-28 11:59:10 UTC
Created attachment 2040646 [details]
File: description

Comment 2 Mikhail 2024-07-28 11:59:11 UTC
Created attachment 2040647 [details]
File: os_info

Comment 3 Zdenek Pytela 2024-07-29 14:18:04 UTC

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


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