Re: BIND and /var/arandom missing fix

Previous thread: Where is 'cdrom42.fs'? 4.2 -release by Bibby on Thursday, November 1, 2007 - 3:12 pm. (8 messages)

Next thread: Re: Wireless problems. by David Walker on Thursday, November 1, 2007 - 6:15 pm. (2 messages)
To: <misc@...>
Date: Thursday, November 1, 2007 - 2:38 pm

I have a server running OpenBSD 4.2-current and acting as a
name server. It always has these messages in the /var/log/daemon
file upon startup:

Oct 27 05:51:38 racine named[3780]: could not open entropy \
source /dev/arandom: file not found
Oct 27 05:51:38 racine named[3780]: using pre-chroot entropy \
source /dev/arandom

That never bothered me, until I needed to use Men and Mice
DNS Server Controller management tools on my OBSD name server,
but that is another story.

Just creating a /var/named/dev/arandom file won't work,
since the partion is mounted as nodev as shown below

/dev/wd0a on / type ffs (local)
/dev/wd0e on /home type ffs (local, nodev, nosuid)
/dev/wd0f on /tmp type ffs (local, nodev, nosuid)
/dev/wd0g on /usr type ffs (local, nodev)
/dev/wd0d on /var type ffs (local, nodev, nosuid)
^^^^^
so I thought I would try creating a separate partition for
/var/named/dev and not using the nodev parameter
I had used all of the drive during inital installation, so I
-went into disklabel -E wd0
- noticed how much space each cylinder took up
- checked to see how large the swap partition was with a 'p m'
- deleted the swap partition, and recreated it 2 megabytes smaller
- created a new partition 2 megabytes in in size
- saved the results
- modified /etc/fstab to mount the new partition as /var/named/dev
without the nodev option

$ mount
/dev/wd0a on / type ffs (local)
/dev/wd0e on /home type ffs (local, nodev, nosuid)
/dev/wd0f on /tmp type ffs (local, nodev, nosuid)
/dev/wd0g on /usr type ffs (local, nodev)
/dev/wd0d on /var type ffs (local, nodev, nosuid)
/dev/wd0h on /var/named/dev type ffs (local, nosuid)

rebooted the computer
-created the devices in /var/named/dev
cd /var/named/dev
/dev.MAKEDEV random

ls -l shows

$ ls -l /var/named/dev
total 0
crw-r--r-- 1 root wheel 45, 4 Oct 27 05:53 arandom
crw-r--r-- 1 root wheel 45, 3 Oct 27 05:53 prandom
crw-r--r-- 1 root wheel 45, 0 Oct 27...

To: J.D. Carlson <jd@...>
Cc: <misc@...>
Date: Thursday, November 1, 2007 - 3:53 pm

Ignore the messages. They mean nothing. Our BIND, when running,
does not use that stupid mechanism for entropy.

Previous thread: Where is 'cdrom42.fs'? 4.2 -release by Bibby on Thursday, November 1, 2007 - 3:12 pm. (8 messages)

Next thread: Re: Wireless problems. by David Walker on Thursday, November 1, 2007 - 6:15 pm. (2 messages)