Bug 2342778 - SELinux is preventing snapperd from 'execute_no_trans' accesses on the file /usr/bin/systemctl.
Summary: SELinux is preventing snapperd from 'execute_no_trans' accesses on the file /...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: selinux-policy
Version: 41
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Zdenek Pytela
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:8bb86420252a12d4a5a716b89a2...
: 2328525 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-01-29 11:58 UTC by Sanjarbek Ismatov
Modified: 2025-03-10 16:09 UTC (History)
9 users (show)

Fixed In Version: selinux-policy-41.31-1.fc41
Clone Of:
Environment:
Last Closed: 2025-02-03 01:19:02 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (2.01 KB, text/plain)
2025-01-29 11:58 UTC, Sanjarbek Ismatov
no flags Details
File: os_info (718 bytes, text/plain)
2025-01-29 11:58 UTC, Sanjarbek Ismatov
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github fedora-selinux selinux-policy pull 2547 0 None open Allow snapperd execute systemctl in the caller domain 2025-01-29 15:41:20 UTC

Description Sanjarbek Ismatov 2025-01-29 11:58:21 UTC
Description of problem:
SELinux is preventing snapperd from 'execute_no_trans' accesses on the file /usr/bin/systemctl.

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

If you believe that snapperd 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 'snapperd' --raw | audit2allow -M my-snapperd
# semodule -X 300 -i my-snapperd.pp

Additional Information:
Source Context                system_u:system_r:snapperd_t:s0
Target Context                system_u:object_r:systemd_systemctl_exec_t:s0
Target Objects                /usr/bin/systemctl [ file ]
Source                        snapperd
Source Path                   snapperd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           systemd-256.11-1.fc41.x86_64
SELinux Policy RPM            selinux-policy-targeted-41.28-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.28-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.12.10-200.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Fri Jan 17 18:05:24 UTC 2025
                              x86_64
Alert Count                   2
First Seen                    2025-01-29 16:56:16 +05
Last Seen                     2025-01-29 16:56:18 +05
Local ID                      6f27a4b5-cf76-4baa-8437-d72408ce0e85

Raw Audit Messages
type=AVC msg=audit(1738151778.369:679): avc:  denied  { execute_no_trans } for  pid=5390 comm="snapperd" path="/usr/bin/systemctl" dev="nvme0n1p7" ino=368840 scontext=system_u:system_r:snapperd_t:s0 tcontext=system_u:object_r:systemd_systemctl_exec_t:s0 tclass=file permissive=0


Hash: snapperd,snapperd_t,systemd_systemctl_exec_t,file,execute_no_trans

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing snapperd from 'execute_no_trans' accesses on the file /usr/bin/systemctl.
package:        selinux-policy-targeted-41.28-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.12.10-200.fc41.x86_64
component:      selinux-policy

Comment 1 Sanjarbek Ismatov 2025-01-29 11:58:23 UTC
Created attachment 2074325 [details]
File: description

Comment 2 Sanjarbek Ismatov 2025-01-29 11:58:25 UTC
Created attachment 2074326 [details]
File: os_info

Comment 3 Fedora Update System 2025-02-01 19:55:52 UTC
FEDORA-2025-62c612355c (selinux-policy-41.31-1.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2025-62c612355c

Comment 4 Fedora Update System 2025-02-02 02:01:45 UTC
FEDORA-2025-62c612355c has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2025-62c612355c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2025-62c612355c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 5 Fedora Update System 2025-02-03 01:19:02 UTC
FEDORA-2025-62c612355c (selinux-policy-41.31-1.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 6 Zdenek Pytela 2025-03-10 16:09:27 UTC
*** Bug 2328525 has been marked as a duplicate of this bug. ***


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