Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
DescriptionFeigelman Evgeny
2017-09-04 15:47:30 UTC
Description of problem:
Some Zabbix functions doesn't working .
Version-Release number of selected component (if applicable):
3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux
selinux-policy-3.13.1-102.el7_3.16.noarch
Zabbix 3.2
How reproducible:
Steps to Reproduce:
1.Enter Zabbix
2.Chose 1 host from Last 20 Issues
3.Left click ,in scripts choose traceroute .
Actual results:
Traceroute
/bin/traceroute 192.168.1.1 (Any address)
sh: /bin/traceroute: Permission denied
Expected results:
Traceroute Succeeded
Additional info:
Sep 4 18:21:18 zabbix python: SELinux is preventing sh from 'read, open' accesses on the file /usr/bin/sudo.#012#012***** Plugin catchall (100. confidence) suggests ************************** #012#012If you believe that sh should be allowed read open access on the sudo file by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this acc ess.#012Do#012allow this access for now by executing:#012# ausearch -c 'sh' --raw | audit2allow -M my-sh#012# semodule -i my-sh.pp#012
When i trying generate local policy by :
# ausearch -c 'sh' --raw | audit2allow -M my-sh
i getting this error :
libsepol.sepol_string_to_security_class: unrecognized class file
****
SELinux is preventing sh from 'read, open' accesses on the file /usr/bin/sudo.
***** Plugin catchall (100. confidence) suggests **************************
If you believe that sh should be allowed read open access on the sudo 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 'sh' --raw | audit2allow -M my-sh
# semodule -i my-sh.pp
Additional Information:
Source Context system_u:system_r:zabbix_t:s0
Target Context system_u:object_r:sudo_exec_t:s0
Target Objects /usr/bin/sudo [ file ]
Source sh
Source Path sh
Port <Unknown>
Host zabbix.localdomain
Source RPM Packages
Target RPM Packages sudo-1.8.6p7-23.el7_3.x86_64
Policy RPM selinux-policy-3.13.1-102.el7_3.16.noarch
Selinux Enabled True
Policy Type targeted
Enforcing Mode Enforcing
Host Name zabbix.localdomain
Platform Linux zabbix.localdomain
3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4
15:04:05 UTC 2017 x86_64 x86_64
Alert Count 3
First Seen 2017-09-04 10:31:04 IDT
Last Seen 2017-09-04 18:21:14 IDT
Local ID 9e7a1779-af5a-4465-bee6-e292337b5a2e
Raw Audit Messages
type=AVC msg=audit(1504538474.454:112): avc: denied { read open } for pid=2757 comm="sh" path="/usr/bin/sudo" dev="dm-0" ino=50778896 scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:o bject_r:sudo_exec_t:s0 tclass=file
Hash: sh,zabbix_t,sudo_exec_t,file,read,open
Description of problem: Some Zabbix functions doesn't working . Version-Release number of selected component (if applicable): 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux selinux-policy-3.13.1-102.el7_3.16.noarch Zabbix 3.2 How reproducible: Steps to Reproduce: 1.Enter Zabbix 2.Chose 1 host from Last 20 Issues 3.Left click ,in scripts choose traceroute . Actual results: Traceroute /bin/traceroute 192.168.1.1 (Any address) sh: /bin/traceroute: Permission denied Expected results: Traceroute Succeeded Additional info: Sep 4 18:21:18 zabbix python: SELinux is preventing sh from 'read, open' accesses on the file /usr/bin/sudo.#012#012***** Plugin catchall (100. confidence) suggests ************************** #012#012If you believe that sh should be allowed read open access on the sudo file by default.#012Then you should report this as a bug.#012You can generate a local policy module to allow this acc ess.#012Do#012allow this access for now by executing:#012# ausearch -c 'sh' --raw | audit2allow -M my-sh#012# semodule -i my-sh.pp#012 When i trying generate local policy by : # ausearch -c 'sh' --raw | audit2allow -M my-sh i getting this error : libsepol.sepol_string_to_security_class: unrecognized class file **** SELinux is preventing sh from 'read, open' accesses on the file /usr/bin/sudo. ***** Plugin catchall (100. confidence) suggests ************************** If you believe that sh should be allowed read open access on the sudo 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 'sh' --raw | audit2allow -M my-sh # semodule -i my-sh.pp Additional Information: Source Context system_u:system_r:zabbix_t:s0 Target Context system_u:object_r:sudo_exec_t:s0 Target Objects /usr/bin/sudo [ file ] Source sh Source Path sh Port <Unknown> Host zabbix.localdomain Source RPM Packages Target RPM Packages sudo-1.8.6p7-23.el7_3.x86_64 Policy RPM selinux-policy-3.13.1-102.el7_3.16.noarch Selinux Enabled True Policy Type targeted Enforcing Mode Enforcing Host Name zabbix.localdomain Platform Linux zabbix.localdomain 3.10.0-514.26.2.el7.x86_64 #1 SMP Tue Jul 4 15:04:05 UTC 2017 x86_64 x86_64 Alert Count 3 First Seen 2017-09-04 10:31:04 IDT Last Seen 2017-09-04 18:21:14 IDT Local ID 9e7a1779-af5a-4465-bee6-e292337b5a2e Raw Audit Messages type=AVC msg=audit(1504538474.454:112): avc: denied { read open } for pid=2757 comm="sh" path="/usr/bin/sudo" dev="dm-0" ino=50778896 scontext=system_u:system_r:zabbix_t:s0 tcontext=system_u:o bject_r:sudo_exec_t:s0 tclass=file Hash: sh,zabbix_t,sudo_exec_t,file,read,open