From owner-freebsd-ports-bugs@FreeBSD.ORG Mon Mar 31 11:20:02 2008 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E61D21065685 for ; Mon, 31 Mar 2008 11:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D73118FC17 for ; Mon, 31 Mar 2008 11:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m2VBK23h043527 for ; Mon, 31 Mar 2008 11:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m2VBK2JK043526; Mon, 31 Mar 2008 11:20:02 GMT (envelope-from gnats) Date: Mon, 31 Mar 2008 11:20:02 GMT Message-Id: <200803311120.m2VBK2JK043526@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Mars G Miro" Cc: Subject: Re: ports/113893: [UPDATE]: Mark net/libdnet as broken in a jail. X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Mars G Miro List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2008 11:20:03 -0000 The following reply was made to PR ports/113893; it has been noted by GNATS. From: "Mars G Miro" To: bug-followup@FreeBSD.org, wxs@atarininja.org, "Pav Lucistnik" , "Jonatan B" Cc: Subject: Re: ports/113893: [UPDATE]: Mark net/libdnet as broken in a jail. Date: Mon, 31 Mar 2008 18:48:41 +0800 Hiya, I just came across this. I do pkg builds all the time, and I own my buildboxens (all other users are trusted), my fix would be to just add a devfs ruleset to unhide the /dev/bpf0 on the jail, somethin like: root@firstcut:~# devfs -m /usr/jails/spryjail/dev/ rule show 100 include 1 200 include 2 300 include 3 root@firstcut:~# devfs -m /usr/jails/spryjail/dev rule add path 'bpf*' unhide root@firstcut:~# devfs -m /usr/jails/spryjail/dev/ rule show 100 include 1 200 include 2 300 include 3 400 path bpf* unhide root@firstcut:~# devfs -m /usr/jails/spryjail/dev rule apply 400 root@firstcut:~# devfs -m /usr/jails/spryjail/dev/ rule show 100 include 1 200 include 2 300 include 3 400 path bpf* unhide root@firstcut:~# dir /usr/jails/spryjail/dev/bpf0 total 1 crw------- 1 root wheel - 0, 105 Mar 26 17:40 bpf0 then go back to the jail and build libdnet. Of course, bpf0 shouldn't be on the jail for security reasons, but like I said, I own the box and want to get done w/ my pkg builds. Hope this is of any use to anyone encountering this problem ;-)