ports/113893: [UPDATE]: Mark net/libdnet as broken in a jail.

Mars G Miro spry at anarchy.in.the.ph
Mon Mar 31 11:20:03 UTC 2008


The following reply was made to PR ports/113893; it has been noted by GNATS.

From: "Mars G Miro" <spry at anarchy.in.the.ph>
To: bug-followup at FreeBSD.org, wxs at atarininja.org, 
	"Pav Lucistnik" <pav at freebsd.org>, "Jonatan B" <onatan at 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 at firstcut:~# devfs -m /usr/jails/spryjail/dev/ rule show
 100 include 1
 200 include 2
 300 include 3
 root at firstcut:~# devfs -m /usr/jails/spryjail/dev rule add path 'bpf*' unhide
 root at firstcut:~# devfs -m /usr/jails/spryjail/dev/ rule show
 100 include 1
 200 include 2
 300 include 3
 400 path bpf* unhide
 root at firstcut:~# devfs -m /usr/jails/spryjail/dev rule apply 400
 root at firstcut:~# devfs -m /usr/jails/spryjail/dev/ rule show
 100 include 1
 200 include 2
 300 include 3
 400 path bpf* unhide
 root at 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 ;-)



More information about the freebsd-ports-bugs mailing list