From owner-freebsd-jail@FreeBSD.ORG Thu Jul 24 16:08:00 2014 Return-Path: Delivered-To: freebsd-jail@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D9ED5AB3 for ; Thu, 24 Jul 2014 16:08:00 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8CD352FDD for ; Thu, 24 Jul 2014 16:08:00 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id s6OG7qBS012380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO) for ; Thu, 24 Jul 2014 10:07:52 -0600 (MDT) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id s6OG7q9C012377 for ; Thu, 24 Jul 2014 10:07:52 -0600 (MDT) (envelope-from wblock@wonkity.com) Date: Thu, 24 Jul 2014 10:07:52 -0600 (MDT) From: Warren Block To: freebsd-jail@FreeBSD.org Subject: Additional devfs rulesets Message-ID: User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Thu, 24 Jul 2014 10:07:52 -0600 (MDT) X-BeenThere: freebsd-jail@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: "Discussion about FreeBSD jail\(8\)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Jul 2014 16:08:00 -0000 devfsrules_jail is defined in /etc/defaults/devfs.rules, but a new ruleset is needed to unhide bpf devices for using check_dhcp in a jail. It seems clunky to define the new ruleset in /etc/devfs.rules on the host. Is there a more elegant way to define it with the jail (ezjail) settings in /usr/local/etc? Although it would help with keeping devfs rules with the other jail settings, is the need for running services like dhcpd in a jail enough to justify adding a new ruleset for it to /etc/defaults/devfs.rules? [devfsrules_jail_dhcp=5] add include $devfsrules_jail add path 'bpf*' unhide (untested)