Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2007 19:32:59 -0700
From:      Christopher Cowart <ccowart@rescomp.berkeley.edu>
To:        Tech Valley Internet - Tony Kivits <tony@techvalley.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: /dev/random in jails
Message-ID:  <20070719023259.GA27888@rescomp.berkeley.edu>
In-Reply-To: <7.0.1.0.0.20070718181625.01d5eeb0@techvalley.ca>
References:  <7.0.1.0.0.20070718181625.01d5eeb0@techvalley.ca>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On Wed, Jul 18, 2007 at 06:30:50PM -0700, Tech Valley Internet - Tony Kivits wrote:
> I am attempting to run portions (if not all) of the software called 
> HSphere inside of jailed subsystems of FreeBSD.  I am able to create 
> the jails no problem but the devices /dev/random and /dev/urandom are 
> not created automatically in the jail despite the fact that a handful 
> of other devices are mounted correctly when the jail is created.
> 
> Is there a specific reason for these devices not being created in a 
> jail or is there a way to create these devices so that they will be 
> available inside a jail?

We run bind instances in FreeBSD jails. This is how we get /dev/random:

| # /etc/devfs.rules:
| [devfsrules_thin_jail=100]
| add include $devfsrules_hide_all
| add include $devfsrules_unhide_basic

| # /etc/rc.conf:
| jail_cachingdns_devfs_enable="YES"
| jail_cachingdns_devfs_ruleset="devfsrules_thin_jail"

HTH,

-- 
Chris Cowart
Lead Systems Administrator
Network & Infrastructure Services, RSSP-IT
UC Berkeley

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD4DBQFGns1bV3SOqjnqPh0RAhjLAKCu7IBvWDxPd09Tai9SMk+vSGq9wACXSaWt
YF5GAK+dgA7Dfn1nc3G9DQ==
=S6uR
-----END PGP SIGNATURE-----

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