/dev/null in bind chroot()

Arkadiusz Miskiewicz arekm at maven.pl
Fri Jun 1 22:57:47 CEST 2007


On Friday 01 of June 2007, Andrzej Krzysztofowicz wrote:
> Arkadiusz Miskiewicz wrote:
> > Hello
> >
> > I wonder what for /dev/null can be used by named inside of it's chroot()
> > ? Any ideas? I guess glibc itself doesn't really need it.
> >
> > /dev/random for example is no longer needed since bind can use
> > /dev/random from outside of chroot (it opens it early and keeps
> > descriptor).
>
> Is the descriptor kept over a reload of named?
> AFAIR there were problems with that.

Seems so.

[root at carme ~]# lsof -n |grep named |grep random
named     24763 named    5r      CHR                1,8                    
402654872 /dev/random
[root at carme ~]# service named reload
Przeładowanie usługi Named.......................................  [ 
ZROBIONE ]
[root at carme ~]# lsof -n |grep named |grep random
named     24763 named    5r      CHR                1,8                    
402654872 /dev/random

no complains in log.

For testing I also deleted /var/lib/named/dev/null - so far no problems.
-- 
Arkadiusz Miśkiewicz        PLD/Linux Team
arekm / maven.pl            http://ftp.pld-linux.org/


More information about the pld-devel-en mailing list