/dev/random in jails

Christopher Cowart ccowart at rescomp.berkeley.edu
Thu Jul 19 02:32:59 UTC 2007


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20070719/0f5896a4/attachment.pgp


More information about the freebsd-questions mailing list