Bug 2227552 - SELinux is preventing waydroid from 'execute_no_trans' accesses on the file /usr/bin/systemctl.
Summary: SELinux is preventing waydroid from 'execute_no_trans' accesses on the file /...
Keywords:
Status: CLOSED EOL
Alias: None
Product: Fedora
Classification: Fedora
Component: waydroid
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alessandro Astone
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:6d0b4c3b2d3eddde5269f582589...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-30 16:28 UTC by Mikhail
Modified: 2024-11-27 21:26 UTC (History)
10 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2024-11-27 21:26:40 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.03 KB, text/plain)
2023-07-30 16:28 UTC, Mikhail
no flags Details
File: os_info (770 bytes, text/plain)
2023-07-30 16:28 UTC, Mikhail
no flags Details

Description Mikhail 2023-07-30 16:28:19 UTC
Description of problem:
Happened after launch Waydroid
SELinux is preventing waydroid from 'execute_no_trans' accesses on the file /usr/bin/systemctl.

*****  Plugin catchall (100. confidence) suggests   **************************

If you believe that waydroid should be allowed execute_no_trans access on the systemctl 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 'waydroid' --raw | audit2allow -M my-waydroid
# semodule -X 300 -i my-waydroid.pp

Additional Information:
Source Context                system_u:system_r:waydroid_t:s0
Target Context                system_u:object_r:systemd_systemctl_exec_t:s0
Target Objects                /usr/bin/systemctl [ file ]
Source                        waydroid
Source Path                   waydroid
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           systemd-254-1.fc39.x86_64
SELinux Policy RPM            selinux-policy-targeted-38.22-1.fc39.noarch
Local Policy RPM              
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.5.0-
                              0.rc3.20230728git57012c57536f.27.fc39.x86_64+debug
                              #1 SMP PREEMPT_DYNAMIC Fri Jul 28 19:18:00 +05
                              2023 x86_64
Alert Count                   2
First Seen                    2023-07-30 21:21:02 +05
Last Seen                     2023-07-30 21:21:05 +05
Local ID                      85ecadfd-cdac-4bce-8bbd-9e40865d2ffe

Raw Audit Messages
type=AVC msg=audit(1690734065.39:1484): avc:  denied  { execute_no_trans } for  pid=504202 comm="waydroid" path="/usr/bin/systemctl" dev="nvme0n1p2" ino=66928444 scontext=system_u:system_r:waydroid_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file permissive=1


Hash: waydroid,waydroid_t,systemd_systemctl_exec_t,file,execute_no_trans

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

Additional info:
reporter:       libreport-2.17.11
reason:         SELinux is preventing waydroid from 'execute_no_trans' accesses on the file /usr/bin/systemctl.
package:        selinux-policy-targeted-38.22-1.fc39.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.5.0-0.rc3.20230728git57012c57536f.27.fc39.x86_64+debug
comment:        Happened after launch Waydroid
component:      selinux-policy

Comment 1 Mikhail 2023-07-30 16:28:21 UTC
Created attachment 1980740 [details]
File: description

Comment 2 Mikhail 2023-07-30 16:28:23 UTC
Created attachment 1980741 [details]
File: os_info

Comment 3 Fedora Release Engineering 2023-08-16 08:06:15 UTC
This bug appears to have been reported against 'rawhide' during the Fedora Linux 39 development cycle.
Changing version to 39.

Comment 4 Aoife Moloney 2024-11-08 11:00:54 UTC
This message is a reminder that Fedora Linux 39 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora Linux 39 on 2024-11-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
'version' of '39'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, change the 'version' 
to a later Fedora Linux version. Note that the version field may be hidden.
Click the "Show advanced fields" button if you do not see it.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora Linux 39 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora Linux, you are encouraged to change the 'version' to a later version
prior to this bug being closed.

Comment 5 Aoife Moloney 2024-11-27 21:26:40 UTC
Fedora Linux 39 entered end-of-life (EOL) status on 2024-11-26.

Fedora Linux 39 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.


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