From 9e9be081d8a6a3ded373db51c8bd13189c979979 Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Mon, 5 Oct 2020 19:26:54 +0000 Subject: [PATCH] devfs.rules: unhide pf in vnet jails /dev/pf is usable in vnet jails, so don't hide the node there. We shouldn't expose /dev/pf in regular jails, as that gives them control over the host (or parent vnet jail) firewall. Reviewed by: bz Differential Revision: https://reviews.freebsd.org/D26537 --- sbin/devfs/devfs.rules | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sbin/devfs/devfs.rules b/sbin/devfs/devfs.rules index 4f5373d1c4c3..01d8e5194c17 100644 --- a/sbin/devfs/devfs.rules +++ b/sbin/devfs/devfs.rules @@ -86,3 +86,7 @@ add include $devfsrules_unhide_basic add include $devfsrules_unhide_login add path fuse unhide add path zfs unhide + +[devfsrules_jail_vnet=5] +add include $devfsrules_jail +add path pf unhide