Bug 2227549 - SELinux is preventing systemctl from 'read' accesses on the lnk_file root.
Summary: SELinux is preventing systemctl from 'read' accesses on the lnk_file root.
Keywords:
Status: NEW
Alias: None
Product: Fedora
Classification: Fedora
Component: waydroid
Version: 39
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Alessandro Astone
QA Contact:
URL:
Whiteboard: abrt_hash:f60e5e95b9363610f25974b0c70...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-07-30 16:26 UTC by Mikhail
Modified: 2023-08-16 08:06 UTC (History)
10 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: ---
Embargoed:


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

Description Mikhail 2023-07-30 16:26:20 UTC
Description of problem:
Happened after launch Waydroid
SELinux is preventing systemctl from 'read' accesses on the lnk_file root.

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

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

Additional Information:
Source Context                system_u:system_r:waydroid_t:s0
Target Context                system_u:system_r:init_t:s0
Target Objects                root [ lnk_file ]
Source                        systemctl
Source Path                   systemctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
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                      0e61a5c1-7cb7-486f-8fe0-83ffe468dda9

Raw Audit Messages
type=AVC msg=audit(1690734065.49:1487): avc:  denied  { read } for  pid=504202 comm="systemctl" name="root" dev="proc" ino=34838 scontext=system_u:system_r:waydroid_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=lnk_file permissive=1


Hash: systemctl,waydroid_t,init_t,lnk_file,read

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 systemctl from 'read' accesses on the lnk_file root.
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:26:22 UTC
Created attachment 1980734 [details]
File: description

Comment 2 Mikhail 2023-07-30 16:26:24 UTC
Created attachment 1980735 [details]
File: os_info

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


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