Bug 2424355

Summary: SELinux is preventing /usr/bin/freshclam from 'entrypoint' accesses on the file /usr/bin/freshclam.
Product: [Fedora] Fedora Reporter: Mr Beedell, Roke Julian Lockhart <8ru2u4gz>
Component: selinux-policyAssignee: Zdenek Pytela <zpytela>
Status: NEW --- QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 43CC: 8ru2u4gz, dwalsh, extras-qa, lvrabec, mmalik, omosnacek, pkoncity, vmojzis, zpytela
Target Milestone: ---Flags: 8ru2u4gz: needinfo? (extras-qa)
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard: abrt_hash:3c992256e5cdc4fcfeca7ebf643bcd642234de16665f627a5595ed4cce8ee267;VARIANT_ID=kde;
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
File: description
none
File: os_info none

Description Mr Beedell, Roke Julian Lockhart 2025-12-22 18:51:26 UTC
Description of problem:
I invoked `run0 freshclam`, for the reasons stipulated in https://bugzilla.redhat.com/show_bug.cgi?id=2424354#c0.
SELinux is preventing /usr/bin/freshclam from 'entrypoint' accesses on the file /usr/bin/freshclam.

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

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

Additional Information:
Source Context                unconfined_u:unconfined_r:unconfined_t:s0-
                              s0:c0.c1023
Target Context                system_u:object_r:antivirus_exec_t:s0
Target Objects                /usr/bin/freshclam [ file ]
Source                        freshclam
Source Path                   /usr/bin/freshclam
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           clamav-freshclam-1.4.3-3.fc43.x86_64
Target RPM Packages           clamav-freshclam-1.4.3-3.fc43.x86_64
SELinux Policy RPM            selinux-policy-targeted-42.19-1.fc43.noarch
Local Policy RPM              selinux-policy-targeted-42.19-1.fc43.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Permissive
Host Name                     (removed)
Platform                      Linux (removed) 6.17.12-300.fc43.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Sat Dec 13 05:06:24 UTC 2025
                              x86_64
Alert Count                   1
First Seen                    2025-12-22 18:33:54 GMT
Last Seen                     2025-12-22 18:33:54 GMT
Local ID                      b8621abd-8737-4c14-9339-496e79fcfebc

Raw Audit Messages
type=AVC msg=audit(1766428434.913:524): avc:  denied  { entrypoint } for  pid=47332 comm="(reshclam)" path="/usr/bin/freshclam" dev="nvme0n1p4" ino=13284498 scontext=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 tcontext=system_u:object_r:antivirus_exec_t:s0 tclass=file permissive=1


type=SYSCALL msg=audit(1766428434.913:524): arch=x86_64 syscall=execve success=yes exit=0 a0=55e4132326b0 a1=55e413231f20 a2=55e41324cff0 a3=0 items=2 ppid=1 pid=47332 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=pts2 ses=5 comm=freshclam exe=/usr/bin/freshclam subj=unconfined_u:unconfined_r:unconfined_t:s0-s0:c0.c1023 key=(null)

type=CWD msg=audit(1766428434.913:524): cwd=/home/RokeJulianLockhart

type=PATH msg=audit(1766428434.913:524): item=0 name=/usr/bin/freshclam inode=13284498 dev=00:22 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:antivirus_exec_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

type=PATH msg=audit(1766428434.913:524): item=1 name=/lib64/ld-linux-x86-64.so.2 inode=12899313 dev=00:22 mode=0100755 ouid=0 ogid=0 rdev=00:00 obj=system_u:object_r:ld_so_t:s0 nametype=NORMAL cap_fp=0 cap_fi=0 cap_fe=0 cap_fver=0 cap_frootid=0

Hash: freshclam,unconfined_t,antivirus_exec_t,file,entrypoint

Version-Release number of selected component:
selinux-policy-targeted-42.19-1.fc43.noarch

Additional info:
reporter:       libreport-2.17.15
reason:         SELinux is preventing /usr/bin/freshclam from 'entrypoint' accesses on the file /usr/bin/freshclam.
package:        selinux-policy-targeted-42.19-1.fc43.noarch
component:      selinux-policy
hashmarkername: setroubleshoot
type:           libreport
kernel:         6.17.12-300.fc43.x86_64
event_log:      2025-12-22-18:34:03> Looking for similar problems in bugzilla
comment:        I invoked `run0 freshclam`, for the reasons stipulated in https://bugzilla.redhat.com/show_bug.cgi?id=2424354#c0.
component:      selinux-policy

Comment 1 Mr Beedell, Roke Julian Lockhart 2025-12-22 18:51:28 UTC
Created attachment 2119690 [details]
File: description

Comment 2 Mr Beedell, Roke Julian Lockhart 2025-12-22 18:51:30 UTC
Created attachment 2119691 [details]
File: os_info

Comment 3 Mr Beedell, Roke Julian Lockhart 2025-12-23 17:08:52 UTC
Relates to https://bugzilla.redhat.com/show_bug.cgi?id=2421016#c0. Per https://bugzilla.redhat.com/show_bug.cgi?id=2421016#c4, is this a duplicate?