Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 Mar 2008 11:20:02 GMT
From:      "Mars G Miro" <spry@anarchy.in.the.ph>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/113893: [UPDATE]: Mark net/libdnet as broken in a jail.
Message-ID:  <200803311120.m2VBK2JK043526@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/113893; it has been noted by GNATS.

From: "Mars G Miro" <spry@anarchy.in.the.ph>
To: bug-followup@FreeBSD.org, wxs@atarininja.org, 
	"Pav Lucistnik" <pav@freebsd.org>, "Jonatan B" <onatan@gmail.com>
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 ;-)



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803311120.m2VBK2JK043526>