Bug 2013449 - SELinux is preventing systemctl from 'search' accesses on the directory /usr/lib/systemd/system.
Summary: SELinux is preventing systemctl from 'search' accesses on the directory /usr/...
Keywords:
Status: CLOSED DUPLICATE of bug 2013439
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 35
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c0d664da4155210663b3ca926d7...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-10-12 21:24 UTC by Michael
Modified: 2022-01-10 21:12 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2022-01-10 21:12:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Michael 2021-10-12 21:24:31 UTC
Description of problem:
SELinux is preventing systemctl from 'search' accesses on the directory /usr/lib/systemd/system.

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

If you believe that systemctl should be allowed search access on the system directory 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:tlp_t:s0-s0:c0.c1023
Target Context                system_u:object_r:systemd_unit_file_t:s0
Target Objects                /usr/lib/systemd/system [ dir ]
Source                        systemctl
Source Path                   systemctl
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           plymouth-0.9.5-3.20210331git1ea1020.fc35.x86_64
                              systemd-249.4-2.fc35.x86_64
SELinux Policy RPM            selinux-policy-targeted-35.1-1.fc35.noarch
Local Policy RPM              selinux-policy-targeted-35.1-1.fc35.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 5.14.11-300.fc35.x86_64 #1 SMP Sun
                              Oct 10 14:36:25 UTC 2021 x86_64 x86_64
Alert Count                   30
First Seen                    2021-10-12 23:23:39 CEST
Last Seen                     2021-10-12 23:24:02 CEST
Local ID                      baed12b3-0e17-42a2-80f4-7f2ec0f38d84

Raw Audit Messages
type=AVC msg=audit(1634073842.854:864): avc:  denied  { search } for  pid=10017 comm="systemctl" name="system" dev="nvme0n1p3" ino=27006 scontext=system_u:system_r:tlp_t:s0-s0:c0.c1023 tcontext=system_u:object_r:systemd_unit_file_t:s0 tclass=dir permissive=0


Hash: systemctl,tlp_t,systemd_unit_file_t,dir,search

Version-Release number of selected component:
selinux-policy-targeted-35.1-1.fc35.noarch

Additional info:
component:      selinux-policy
reporter:       libreport-2.15.2
hashmarkername: setroubleshoot
kernel:         5.14.11-300.fc35.x86_64
type:           libreport

Comment 1 Zdenek Pytela 2022-01-10 21:12:01 UTC

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


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