Description of problem: snmpwalk -v2c -c trab2redes localhost SELinux is preventing snmpd from 'sys_ptrace' accesses on the cap_userns Desconhecido. ***** Plugin catchall (100. confidence) suggests ************************** Se você acredita nisso snmpd deve ser permitido sys_ptrace acesso no Desconhecido cap_userns por padrão. Then você deve informar que este é um erro. Você pode gerar um módulo de política local para permitir este acesso. Do permitir este acesso por agora executando: # ausearch -c 'snmpd'--raw | audit2allow -M my-snmpd # semodule -X 300 -i my-snmpd.pp Additional Information: Source Context system_u:system_r:snmpd_t:s0 Target Context system_u:system_r:snmpd_t:s0 Target Objects Desconhecido [ cap_userns ] Source snmpd Source Path snmpd Port <Desconhecido> Host (removed) Source RPM Packages Target RPM Packages Policy RPM selinux-policy-3.14.3-37.fc30.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name (removed) Platform Linux (removed) 5.0.17-300.fc30.x86_64 #1 SMP Mon May 20 15:36:26 UTC 2019 x86_64 x86_64 Alert Count 964 First Seen 2019-05-25 11:09:07 -03 Last Seen 2019-05-25 11:42:29 -03 Local ID 2cc13fb2-80c6-4abc-a063-65a5c6edb715 Raw Audit Messages type=AVC msg=audit(1558795349.818:1209): avc: denied { sys_ptrace } for pid=782 comm="snmpd" capability=19 scontext=system_u:system_r:snmpd_t:s0 tcontext=system_u:system_r:snmpd_t:s0 tclass=cap_userns permissive=0 Hash: snmpd,snmpd_t,snmpd_t,cap_userns,sys_ptrace Version-Release number of selected component: selinux-policy-3.14.3-37.fc30.noarch Additional info: component: selinux-policy reporter: libreport-2.10.0 hashmarkername: setroubleshoot kernel: 5.0.17-300.fc30.x86_64 type: libreport
Hi, Do you see any issues with snmpd or you just got this SELinux denial without any affect on functionality? Thanks, Lukas.
First, I would like to apologize for the delay in making this response. About your question: The system now sends "endless" notifications. With each new read, a system notification occurs, as my "get" went to every tree, I received so many notifications that the system crashed until all notifications were displayed. So yes, that made the system unstable for more than 10 minutes or so. I solved the problem by disabling system notifications and beeps.
Thanks for update. commit adc572faae590e87ef91f8ba3ee8e99f92a531ea (HEAD -> rawhide) Author: Lukas Vrabec <lvrabec> Date: Tue Nov 26 14:50:46 2019 +0100 Allow snmpd_t domain to trace processes in user namespace Resolves: rhbz#1713898
FEDORA-2019-e9d8868185 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-e9d8868185
selinux-policy-3.14.3-53.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e9d8868185
container-selinux-2.123.0-2.fc30, selinux-policy-3.14.3-53.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-e9d8868185
container-selinux-2.123.0-2.fc30, selinux-policy-3.14.3-53.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.