HomeFreeBSD

ipfilter: Support only jails in VNET

Description

ipfilter: Support only jails in VNET

Jails without VNET have complete access to the ipfilter rules, NAT,
pools and logs. This is insecure. Only allow jails to manipulate
ipfilter rules, NAT tables and ippools if the jail has its own VNET.
Otherwise a jail can affect the global system.

This patch brings ipfilter in line with ipfw's support of VNET jails and
non-support of non-VNET jails.

MFC after: 1 week

Details

Provenance
cyAuthored on Mar 17 2022, 6:05 PM
Parents
rG70b56f4b9287: sqlite3: Vendor import of sqlite3 3.39.0
Branches
Unknown
Tags
Unknown