Page MenuHomeFreeBSD

pf tests: make synproxy and nat work correctly even if inetd is running
ClosedPublic

Authored by takahiro.kurosawa_gmail.com on Apr 7 2021, 7:24 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jul 5, 2:40 PM
Unknown Object (File)
Wed, Jul 2, 6:11 AM
Unknown Object (File)
Thu, Jun 19, 10:59 PM
Unknown Object (File)
Thu, Jun 19, 5:31 AM
Unknown Object (File)
Wed, Jun 18, 11:48 AM
Unknown Object (File)
Sun, Jun 15, 11:11 AM
Unknown Object (File)
May 16 2025, 8:17 AM
Unknown Object (File)
May 13 2025, 11:48 AM

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable