You can find out which ports are configured with:
[0:root@c3po selinux]$ semanage port -l
| grep dhcpd
dhcpd_port_t tcp 547, 548, 647,
847, 7911
dhcpd_port_t udp 67, 547, 548,
647, 847
There are designated ports in /etc/services:
dhcp-failover 647/tcp
# DHCP Failover
dhcp-failover 647/udp # DHCP Failover
dhcp-failover2 847/tcp # dhcp-failover
2
dhcp-failover2 847/udp # dhcp-failover
2
I use 647/847 on one failover pair and 520/520 on another which I
don't recall
having to inform selinux about even though 520 is not in the
policy.
FYI:
[0:root@c3po selinux]$ semanage port -l
| grep -e 7911 -e 8118
dhcpd_port_t tcp 547, 548, 647,
847, 7911
http_cache_port_t tcp 8080, 8118,
8123, 10001-10010
Bill
On 11/2/2019 9:31 PM, Sam Varshavchik
wrote:
Does
anyone happen to know if the dhcp failover configuration that's
documented here: https://kb.isc.org/docs/aa-00502 is supported by
Fedora's selinux policy. Perusing it, failover seems to use a
dedicated port(s), so selinux needs to bless dhcp's binding to
that port(s).
I couldn't figure out what is or isn't in Fedora's selinux polixy
by searching what's in the selinux-policy-targeted and
selinux-policy-devel rpms; and I was unable to find any useful
selinux documentation, either in the supplied rpm or web searches.
It would be nice to know this in advance before attempting to
wreck my LAN for an afternoon, trying to get this to work with
selinux enabled.
I thought I could determine whether Fedora's selinux with respect
to dhcp and ports 647 and 7911 (the dhcpd.conf man pages makes it
clear that ports 519 and 520 from the above docs are outdated) by
figuring out where is the selinux policy restricts privoxy to port
8118; but a grep of all the files in selinux-policy-targeted or
selinux-policy-devel finds nothing that appears to specify that
the privoxy_t domain is allowed to bind port 8118. The selinux-doc
RPM appears to be just robo-generated documentation that just
repeats the stuff that I found in the other RPMs.
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx
|
_______________________________________________
users mailing list -- users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to users-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/users@xxxxxxxxxxxxxxxxxxxxxxx