From b59cfde3112d839b8b7e7f941650e69f80d4f202 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Llu=C3=ADs=20Batlle=20i=20Rossell?= Date: Sat, 9 Jan 2010 14:23:20 +0000 Subject: [PATCH] Making /dev/pts files have group owner 'tty', so 'mesg y' will work. svn path=/nixos/trunk/; revision=19317 --- modules/system/boot/stage-2-init.sh | 2 +- modules/system/boot/stage-2.nix | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/system/boot/stage-2-init.sh b/modules/system/boot/stage-2-init.sh index 5343aa9eae99..adab3bf5d06d 100644 --- a/modules/system/boot/stage-2-init.sh +++ b/modules/system/boot/stage-2-init.sh @@ -74,7 +74,7 @@ mount -t tmpfs -o "mode=0755" none /dev mkdir -m 0777 /dev/shm mount -t tmpfs -o "rw,nosuid,nodev" tmpfs /dev/shm mkdir -m 0755 -p /dev/pts -mount -t devpts -o mode=0600 none /dev/pts +mount -t devpts -o mode=0600,gid=@ttyGid@ none /dev/pts [ -e /proc/bus/usb ] && mount -t usbfs none /proc/bus/usb # uml doesn't have usb by default mkdir -m 01777 -p /tmp mkdir -m 0755 -p /var diff --git a/modules/system/boot/stage-2.nix b/modules/system/boot/stage-2.nix index 5c3c3560be32..2e5e2e524dd7 100644 --- a/modules/system/boot/stage-2.nix +++ b/modules/system/boot/stage-2.nix @@ -23,6 +23,7 @@ let src = ./stage-2-init.sh; isExecutable = true; inherit kernel activateConfiguration; + ttyGid = config.ids.gids.tty; upstart = config.system.build.upstart; path = [ coreutils