Bug 2170953 - SELinux is preventing zabbix_agentd from 'getattr' accesses on the file /proc/kcore.
Summary: SELinux is preventing zabbix_agentd from 'getattr' accesses on the file /proc...
Keywords:
Status: CLOSED DUPLICATE of bug 2170630
Alias: None
Product: Fedora
Classification: Fedora
Component: zabbix
Version: 37
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:c24d6bdbf305be68dc05545d712...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-02-17 19:54 UTC by b.gatessucks
Modified: 2023-02-17 20:11 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2023-02-17 20:11:13 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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 ***


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