[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hurd-bug
Subject:    [PATCH] sutils: add random device targets to MAKEDEV
From:       David Michael <fedora.dm0 () gmail ! com>
Date:       2014-06-16 19:08:19
Message-ID: 871tuopt98.fsf () gmail ! com
[Download RAW message or body]

* sutils/MAKEDEV.sh (random,urandom): New targets.
(std): Add random and urandom to the standard devices list.
---

Hi,

With the random merge, can /dev/(u)random devices now be added to
MAKEDEV?  (I'm not married to the seed file argument, in case there
is a better default location for it.)

Thanks.

David

 sutils/MAKEDEV.sh | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/sutils/MAKEDEV.sh b/sutils/MAKEDEV.sh
index 0a8f514..db98353 100644
--- a/sutils/MAKEDEV.sh
+++ b/sutils/MAKEDEV.sh
@@ -100,7 +100,7 @@ mkdev() {
 	;;
 
       std)
-	mkdev console tty null zero full fd time mem klog shm
+	mkdev console tty null zero random urandom full fd time mem klog shm
 	;;
       console|com[0-9])
 	st $I root 600 /hurd/term ${DEVDIR}/$I device $I;;
@@ -117,6 +117,10 @@ mkdev() {
 	st $I root 666 /hurd/null --full;;
       zero)
 	st $I root 666 /bin/nullauth -- /hurd/storeio -Tzero;;
+      random)
+	st $I root 644 /hurd/random --secure --seed-file /var/lib/random-seed;;
+      urandom)
+	st $I root 644 /hurd/random --fast --seed-file /var/lib/random-seed;;
       tty)
 	st $I root 666 /hurd/magic tty;;
       fd)
-- 
1.9.3


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic