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.
We have a unbound server that needs to listen on port 80/tcp.
# semanage port -l | grep dns
dns_port_t tcp 80, 443, 8953, 53
dns_port_t udp 53
# semanage port -l | grep http_port_t
http_port_t tcp 80, 443, 488, 8008, 8009, 8443
# setenforce 1
# service unbound restart
Stopping unbound: [ OK ]
Starting unbound: Aug 23 17:05:13 unbound[17141:0] warning: increased limit(open files) from 1024 to 8314
Aug 23 17:05:13 unbound[17141:0] error: can't bind socket: Permission denied
Aug 23 17:05:13 unbound[17141:0] debug: failed address 0.0.0.0 port 80
Aug 23 17:05:13 unbound[17141:0] fatal error: could not open ports
[FAILED]
# setenforce 0
# service unbound restart
Stopping unbound: [FAILED]
Starting unbound: Aug 23 17:05:26 unbound[17157:0] warning: increased limit(open files) from 1024 to 8314
[ OK ]
This was working before, so might be a regression in selinux-policy-3.7.19-155.el6_3
How did you define tcp/80 as dns_port_t?
You did not get
/sbin/semanage: Port tcp/80 already defined
?
We have the
named_bind_http_port
boolean in Fedora which I should backport.
# semanage port -l | grep dns_port_t
dns_port_t tcp 8953, 53
dns_port_t udp 53
# semanage port -m -p tcp -t dns_port_t 80
# semanage port -l | grep dns_port_t
dns_port_t tcp 80, 8953, 53
dns_port_t udp 53
#
It is possible to add 80 to dns_port_t even if 80 is already used in http_port_t, but you have to use "semanage port -m ...".
# semanage port -l | grep http_port_t
http_port_t tcp 80, 443, 488, 8008, 8009, 8443
pegasus_http_port_t tcp 5988
#
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.
http://rhn.redhat.com/errata/RHBA-2013-0314.html
We have a unbound server that needs to listen on port 80/tcp. # semanage port -l | grep dns dns_port_t tcp 80, 443, 8953, 53 dns_port_t udp 53 # semanage port -l | grep http_port_t http_port_t tcp 80, 443, 488, 8008, 8009, 8443 # setenforce 1 # service unbound restart Stopping unbound: [ OK ] Starting unbound: Aug 23 17:05:13 unbound[17141:0] warning: increased limit(open files) from 1024 to 8314 Aug 23 17:05:13 unbound[17141:0] error: can't bind socket: Permission denied Aug 23 17:05:13 unbound[17141:0] debug: failed address 0.0.0.0 port 80 Aug 23 17:05:13 unbound[17141:0] fatal error: could not open ports [FAILED] # setenforce 0 # service unbound restart Stopping unbound: [FAILED] Starting unbound: Aug 23 17:05:26 unbound[17157:0] warning: increased limit(open files) from 1024 to 8314 [ OK ] This was working before, so might be a regression in selinux-policy-3.7.19-155.el6_3