git: eaab06d53dfa - stable/13 - devfs.rules: Correctly unhide pf in vnet jails

From: Kristof Provost <>
Date: Wed, 24 Nov 2021 16:58:45 UTC
The branch stable/13 has been updated by kp:


commit eaab06d53dfa7fbf926a2c19aa00a6804b5e6349
Author:     Zhenlei Huang <>
AuthorDate: 2021-11-03 11:46:48 +0000
Commit:     Kristof Provost <>
CommitDate: 2021-11-24 16:45:51 +0000

    devfs.rules: Correctly unhide pf in vnet jails
    Revision 9e9be081d8 introduced a new devfs rule devfsrules_jail_vnet. It
    includes rule devfsrules_jail which include other rules. Unfortunately
    devfs could not recursively parse the action include and thus
    devfsrules_jail_vnet will expose all nodes.
    PR:             255660
    Reviewed by:    kp
    Obtained from:  Gijs Peskens <>
    MFC after:      3 weeks
    Differential Revision:
    (cherry picked from commit 7acd322ebe2072b1d73b1d19c14ab12a300ba8e8)
 sbin/devfs/devfs.rules | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sbin/devfs/devfs.rules b/sbin/devfs/devfs.rules
index 01d8e5194c17..9543e20947d9 100644
--- a/sbin/devfs/devfs.rules
+++ b/sbin/devfs/devfs.rules
@@ -88,5 +88,8 @@ add path fuse unhide
 add path zfs unhide
+add include $devfsrules_hide_all
+add include $devfsrules_unhide_basic
+add include $devfsrules_unhide_login
 add include $devfsrules_jail
 add path pf unhide