]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
pf tests: make synproxy and nat work correctly even if inetd is running
authorKurosawa Takahiro <takahiro.kurosawa@gmail.com>
Wed, 7 Apr 2021 06:17:51 +0000 (08:17 +0200)
committerKristof Provost <kp@FreeBSD.org>
Wed, 7 Apr 2021 11:05:23 +0000 (13:05 +0200)
commit5a5623397c73e46b206289d32d1d6b9de420da9c
tree576c59098cc86d0d78c5b98b55967396e79bb882
parent86a52e262a6faf75ee34eaa801f6d8ddaad20733
pf tests: make synproxy and nat work correctly even if inetd is running

tests/sys/netfil/pf/synproxy fails if inetd has been running
outside of the jail because pidfile_open() fails with EEXIST.
tests/sys/netfil/pf/nat has the same problem but the test succeeds
because whether inetd is running is not so important.

Fix the problem by changing the pidfile path from the default
location.

Reviewed by: kp
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D29622
tests/sys/netpfil/pf/nat.sh
tests/sys/netpfil/pf/synproxy.sh