Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

rc.subr patch to apply devfs rules to jail

1 view
Skip to first unread message

ni...@netdot.net

unread,
Jan 8, 2004, 7:57:48 PM1/8/04
to

--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Not sure if I'm missing something, but devfs rules weren't being applied
to my jail's devfs. Here's a patch that causes application.

Thanks,

-nick

--
"They that can give up essential liberty
to obtain a little temporary safety
deserve neither liberty nor safety."

Benjamin Franklin
Historical Review of Pennsylvania, 1759


--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="rc.subr.diff"

--- rc.subr.orig Thu Jan 8 16:39:44 2004
+++ rc.subr Thu Jan 8 16:49:30 2004
@@ -1231,6 +1231,7 @@
if [ -n "$rs" ]; then
devfs_init_rulesets
devfs_set_ruleset $rs $devdir
+ devfs_apply_ruleset $rs $devdir
fi
return 0
}

--5mCyUwZo2JvN/JJP
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
freebsd...@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-curre...@freebsd.org"

--5mCyUwZo2JvN/JJP--

colin.p...@wadham.ox.ac.uk

unread,
Jan 8, 2004, 8:04:49 PM1/8/04
to
At 00:53 09/01/2004, Nicholas Esborn wrote:
>Not sure if I'm missing something, but devfs rules weren't being applied
>to my jail's devfs.

*cough* PR bin/61047 *cough*

> Here's a patch that causes application.

That patch does more than necessary -- after you've set_ruleset, you
don't need to call devfs_apply_ruleset; devfs -m $devdir rule applyset
is sufficient.

Colin Percival

0 new messages