Bug 2170953

Summary: SELinux is preventing zabbix_agentd from 'getattr' accesses on the file /proc/kcore.
Product: [Fedora] Fedora Reporter: b.gatessucks
Component: zabbixAssignee: Gwyn Ciesla <gwync>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 37CC: bennie.joubert, dan, gwync, orion
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:c24d6bdbf305be68dc05545d71227a8d033fc8ba37b3982373781ae7fc12670e;VARIANT_ID=workstation;
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-02-17 20:11:13 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description b.gatessucks 2023-02-17 19:54:49 UTC
Description of problem:
SELinux is preventing zabbix_agentd from 'getattr' accesses on the file /proc/kcore.

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

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

Additional Information:
Source Context                system_u:system_r:zabbix_agent_t:s0
Target Context                system_u:object_r:proc_kcore_t:s0
Target Objects                /proc/kcore [ file ]
Source                        zabbix_agentd
Source Path                   zabbix_agentd
Port                          <Unknown>
Host                          (removed)
Source RPM Packages           
Target RPM Packages           
SELinux Policy RPM            selinux-policy-targeted-37.19-1.fc37.noarch
Local Policy RPM              zabbix-selinux-6.0.8-1.fc37.noarch
Selinux Enabled               True
Policy Type                   targeted
Enforcing Mode                Enforcing
Host Name                     (removed)
Platform                      Linux (removed) 6.1.11-200.fc37.x86_64 #1 SMP
                              PREEMPT_DYNAMIC Thu Feb 9 19:20:24 UTC 2023 x86_64
                              x86_64
Alert Count                   4
First Seen                    2023-02-17 16:44:35 GMT
Last Seen                     2023-02-17 19:44:35 GMT
Local ID                      90ab9a8b-3cf0-4ca3-b381-f4c8fe9245cb

Raw Audit Messages
type=AVC msg=audit(1676663075.574:440): avc:  denied  { getattr } for  pid=4300 comm="zabbix_agentd" path="/proc/kcore" dev="proc" ino=4026532075 scontext=system_u:system_r:zabbix_agent_t:s0 tcontext=system_u:object_r:proc_kcore_t:s0 tclass=file permissive=0


Hash: zabbix_agentd,zabbix_agent_t,proc_kcore_t,file,getattr

Version-Release number of selected component:
selinux-policy-targeted-37.19-1.fc37.noarch

Additional info:
component:      zabbix
reporter:       libreport-2.17.4
hashmarkername: setroubleshoot
kernel:         6.1.11-200.fc37.x86_64
type:           libreport

Comment 1 Orion Poplawski 2023-02-17 20:11:13 UTC

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