Bug 1514121
Summary: | SELinux: apache can't bind port 10080 | ||
---|---|---|---|
Product: | [Red Hat Storage] Red Hat Gluster Storage | Reporter: | Martin Bukatovic <mbukatov> |
Component: | web-admin-tendrl-selinux | Assignee: | Nishanth Thomas <nthomas> |
Status: | CLOSED ERRATA | QA Contact: | Martin Bukatovic <mbukatov> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rhgs-3.3 | CC: | mkudlej, rcyriac, rhs-bugs, sanandpa, sankarshan, sds-qe-bugs |
Target Milestone: | --- | Keywords: | Security, SELinux, ZStream |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | tendrl-selinux-1.5.4-1.el7rhgs.noarch | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2017-12-18 04:37:04 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1514098 |
Description
Martin Bukatovic
2017-11-16 16:55:12 UTC
Updating Version/Release section: # rpm -qa | grep tendrl | sort tendrl-ansible-1.5.4-1.el7rhgs.noarch tendrl-api-1.5.4-2.el7rhgs.noarch tendrl-api-httpd-1.5.4-2.el7rhgs.noarch tendrl-commons-1.5.4-2.el7rhgs.noarch tendrl-grafana-plugins-1.5.4-3.el7rhgs.noarch tendrl-grafana-selinux-1.5.3-2.el7rhgs.noarch tendrl-monitoring-integration-1.5.4-3.el7rhgs.noarch tendrl-node-agent-1.5.4-2.el7rhgs.noarch tendrl-notifier-1.5.4-2.el7rhgs.noarch tendrl-selinux-1.5.3-2.el7rhgs.noarch tendrl-ui-1.5.4-2.el7rhgs.noarch Moving this BZ into SELinux component. Status update: there are many avc denials on both server and storage machines. I need to investigate deeper and see which ones are actually a problem for us (some of those, eg. from permissive domains, are expected). Checking with tendrl-selinux-1.5.4-1.el7rhgs.noarch [root@mbukatov-usm1-server ~] # ausearch -m avc | grep ^time | wc -l 799 [root@mbukatov-usm1-gl1 ~]# ausearch -m avc | grep ^time | wc -l 756 (In reply to Martin Bukatovic from comment #5) > Status update: there are many avc denials on both server and storage > machines. > > I need to investigate deeper and see which ones are actually a problem for us > (some of those, eg. from permissive domains, are expected). > > Checking with tendrl-selinux-1.5.4-1.el7rhgs.noarch > > [root@mbukatov-usm1-server ~] # ausearch -m avc | grep ^time | wc -l > 799 > > [root@mbukatov-usm1-gl1 ~]# ausearch -m avc | grep ^time | wc -l > 756 Ignore this comment, that should have been posted into tracker BZ instead. Checking with: tendrl-selinux-1.5.4-1.el7rhgs.noarch ``` # rpm -qa | grep selinux | sort carbon-selinux-1.5.4-1.el7rhgs.noarch libselinux-2.5-11.el7.x86_64 libselinux-python-2.5-11.el7.x86_64 libselinux-utils-2.5-11.el7.x86_64 selinux-policy-3.13.1-166.el7_4.7.noarch selinux-policy-targeted-3.13.1-166.el7_4.7.noarch tendrl-grafana-selinux-1.5.4-1.el7rhgs.noarch tendrl-selinux-1.5.4-1.el7rhgs.noarch ``` On RHGS WA server machine, there is no problem for apache to bind port 10080. ``` # ausearch -m avc | grep 'denied { name_bind } for' type=AVC msg=audit(1512465255.780:2961): avc: denied { name_bind } for pid=14794 comm="puma" src=9292 scontext=system_u:system_r:tendrl_t:s0 tcontext=system_u:object_r:glance_port_t:s0 tclass=tcp_socket type=AVC msg=audit(1512465450.079:4104): avc: denied { name_bind } for pid=17214 comm="tendrl-monitori" src=8789 scontext=system_u:system_r:tendrl_t:s0 tcontext=system_u:object_r:unreserved_port_t:s0 tclass=tcp_socket type=AVC msg=audit(1512465463.058:4522): avc: denied { name_bind } for pid=17816 comm="puma" src=9292 scontext=system_u:system_r:tendrl_t:s0 tcontext=system_u:object_r:glance_port_t:s0 tclass=tcp_socket # lsof -i -nP | grep 10080 grafana-s 18069 grafana 4u IPv4 170132 0t0 TCP 10.37.169.90:51460->10.37.169.90:10080 (ESTABLISHED) httpd 31946 root 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31947 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31948 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31949 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31950 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31951 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31978 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31982 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) httpd 31983 apache 6u IPv6 163029 0t0 TCP *:10080 (LISTEN) ``` I have installed RHGS WA and imported the cluster without any problems. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHEA-2017:3478 |