Application of Solaris 8 patch 112438-01 without reboot

From: Andrew J Caines (Andrew.J.Caines@wcom.com)
Date: Mon Apr 08 2002 - 17:12:51 EDT


Now that Sun has finally seen the light and given us /dev/[u]random for
Solaris 8 in the form of patch 112438-01, I note that the patch
instructions take the MSish easy way out and require a reboot, as if the
average admin doesn't load and unload kernel modules, make nodes, etc. on
a daily basis.

For the record, what is the correct process for enabling the new random
device on a running Solaris 8 box?

In what way is the following incorrect and/or insufficient?

# patchadd 112438-01
# mknod /devices/pseudo/random@0:random c 82 0
# mknod /devices/pseudo/random@0:urandom c 82 1
# chgrp sys /devices/pseudo/random*
# cd /dev
# ln -s ../devices/pseudo/random@0:random /dev/random
# ln -s ../devices/pseudo/random@0:urandom /dev/urandom
# modload /kernel/drv/random

Major 82 comes from /etc/name_to_major, owner and perms from
/etc/minor_perm. Minors are presumed, as are pathnames under /devices. Are
they correct?

FWIW, "dd if=/dev/urandom of=file count=1" results in a file filled with
some randomlike data.

For the record, should the prescribed reboot be a reconfig, or will the
new device be created automagically? The modload alone did not create
them. I haven't had a chance to verify yet.

-Andrew-

-- 
 ________________________________________________________________
|  -Andrew J. Caines-   703-886-2689    Andrew.J.Caines@wcom.com |
| Unix Systems Engineer, WorldCom  Andrew.J.Caines+page@wcom.com |
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:10 EDT