]> 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, 14 Apr 2021 08:17:14 +0000 (10:17 +0200)
commit38b25dade179bec0eeccff95a5ae354e7304e474
tree668731eeba58684641f094bd5c8bc5eabffabd31
parent6c4ea5bb59ac83aed1bb9ea75ef230d34cba2c24
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

(cherry picked from commit 5a5623397c73e46b206289d32d1d6b9de420da9c)
tests/sys/netpfil/pf/nat.sh
tests/sys/netpfil/pf/synproxy.sh