diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-01-18 15:08:33 +0100 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-01-18 22:32:50 +0100 |
commit | b97c95eb3c4894bbbe7b645b163147e3f837e754 (patch) | |
tree | de0e49adf7001b7da16eec5069043cb9716e4763 /guix/build | |
parent | 8bb1699bd515b5c1445c5643284b350eb3157d1f (diff) | |
download | gnu-guix-b97c95eb3c4894bbbe7b645b163147e3f837e754.tar gnu-guix-b97c95eb3c4894bbbe7b645b163147e3f837e754.tar.gz |
linux-initrd: Make /dev/{null,zero} world-writable.
Reported by zerwas on #guix.
* guix/build/linux-initrd.scm (make-essential-device-nodes): Make
/dev/null and /dev/zero world-writable.
Diffstat (limited to 'guix/build')
-rw-r--r-- | guix/build/linux-initrd.scm | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/guix/build/linux-initrd.scm b/guix/build/linux-initrd.scm index cbdb363b4e..ae18a16e11 100644 --- a/guix/build/linux-initrd.scm +++ b/guix/build/linux-initrd.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2013 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2013, 2014 Ludovic Courtès <ludo@gnu.org> ;;; ;;; This file is part of GNU Guix. ;;; @@ -95,7 +95,9 @@ ;; Other useful nodes. (mknod (scope "dev/null") 'char-special #o666 (device-number 1 3)) - (mknod (scope "dev/zero") 'char-special #o666 (device-number 1 5))) + (mknod (scope "dev/zero") 'char-special #o666 (device-number 1 5)) + (chmod (scope "dev/null") #o666) + (chmod (scope "dev/zero") #o666)) (define %host-qemu-ipv4-address (inet-pton AF_INET "10.0.2.10")) |