summaryrefslogtreecommitdiff
path: root/debian/patches/david-add-random.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/david-add-random.patch')
-rw-r--r--debian/patches/david-add-random.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/debian/patches/david-add-random.patch b/debian/patches/david-add-random.patch
new file mode 100644
index 00000000..fd1f4a52
--- /dev/null
+++ b/debian/patches/david-add-random.patch
@@ -0,0 +1,41 @@
+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
+
+