Bug 2328525 - SELinux is preventing snapperd from 'execute' accesses on the file systemctl.
Summary: SELinux is preventing snapperd from 'execute' accesses on the file systemctl.
Keywords:
Status: CLOSED DUPLICATE of bug 2342778
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:9c090179e2638ce12149dde817c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2024-11-24 04:29 UTC by jack
Modified: 2025-03-10 16:09 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2025-03-10 16:09:27 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: description (1.92 KB, text/plain)
2024-11-24 04:29 UTC, jack
no flags Details
File: os_info (754 bytes, text/plain)
2024-11-24 04:29 UTC, jack
no flags Details

Description jack 2024-11-24 04:29:46 UTC
Description of problem:
installed snapper using `sudo dnf install snapper` and created a new snapper configuration using `sudo snapper -c root create-config /`
SELinux is preventing snapperd from 'execute' accesses on the file systemctl.

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

If you believe that snapperd should be allowed execute 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                systemctl [ file ]
Source                        snapperd
Source Path                   snapperd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-41.26-1.fc41.noarch
Local Policy RPM              selinux-policy-targeted-41.26-1.fc41.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.11.8-300.fc41.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Nov 14 20:37:39 UTC 2024
                              x86_64
Alert Count                   1
First Seen                    2024-11-23 20:24:26 PST
Last Seen                     2024-11-23 20:24:26 PST
Local ID                      15309ae4-3b0c-44b5-b476-ec8b85b37117

Raw Audit Messages
type=AVC msg=audit(1732422266.927:400): avc:  denied  { execute } for  pid=5949 comm="snapperd" name="systemctl" dev="nvme0n1p3" ino=35632 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

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

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing snapperd from 'execute' accesses on the file systemctl.
package:        selinux-policy-targeted-41.26-1.fc41.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.11.8-300.fc41.x86_64
comment:        installed snapper using `sudo dnf install snapper` and created a new snapper configuration using `sudo snapper -c root create-config /`
component:      selinux-policy

Comment 1 jack 2024-11-24 04:29:48 UTC
Created attachment 2059577 [details]
File: description

Comment 2 jack 2024-11-24 04:29:50 UTC
Created attachment 2059578 [details]
File: os_info

Comment 3 Zdenek Pytela 2025-03-10 16:09:27 UTC

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


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