Re: /dev/random and chroot()

2003-03-28 Thread Brian Hatch
> I'm writing an SSL daemon that for security reasons does a chroot(2) to its own > little root. When chrooted, it obviously cannot open /dev/random or /dev/urandom > when I do SSL operations. Is there a way I can open these for OpenSSL before > chrooting, or do I have to recreate them under my r

Re: /dev/random and chroot()

2003-03-28 Thread Lutz Jaenicke
On Fri, Mar 28, 2003 at 10:55:34AM +0100, Axel Andersson wrote: > I'm writing an SSL daemon that for security reasons does a chroot(2) to its own > little root. When chrooted, it obviously cannot open /dev/random or /dev/urandom > when I do SSL operations. Is there a way I can open these for OpenSS

Re: /dev/random and chroot()

2003-03-28 Thread Andrew Sherman
You need to create the special files in your chroot jail. Andy Sherman IT Security Morgan Stanley Axel Andersson wrote: > Hey, > I'm writing an SSL daemon that for security reasons does a chroot(2) to its own > little root. When chrooted, it obviously cannot open /dev/random or /dev/urandom > wh

/dev/random and chroot()

2003-03-28 Thread Axel Andersson
Hey, I'm writing an SSL daemon that for security reasons does a chroot(2) to its own little root. When chrooted, it obviously cannot open /dev/random or /dev/urandom when I do SSL operations. Is there a way I can open these for OpenSSL before chrooting, or do I have to recreate them under my root d