From f558c8e36a3bb0d368cd51866f2d33e53c1c8818 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sat, 4 Jan 2020 13:25:13 +0100 Subject: [PATCH] Base: Add an "audio" group that gets to write to /dev/audio --- Base/etc/group | 1 + Kernel/build-root-filesystem.sh | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Base/etc/group b/Base/etc/group index 0d28714317..e1bd20f29a 100644 --- a/Base/etc/group +++ b/Base/etc/group @@ -2,4 +2,5 @@ root:x:0: wheel:x:1:anon tty:x:2: phys:x:3:anon +audio:x:4:anon users:x:100:anon diff --git a/Kernel/build-root-filesystem.sh b/Kernel/build-root-filesystem.sh index 5dfcc27eb3..a3461e2295 100755 --- a/Kernel/build-root-filesystem.sh +++ b/Kernel/build-root-filesystem.sh @@ -4,9 +4,7 @@ set -e tty_gid=2 phys_gid=3 - -# HACK: Get rid of old "qs" binaries still lying around from before it was renamed. -rm -f ../Userland/qs +audio_gid=4 die() { echo "die: $*" @@ -60,8 +58,9 @@ mknod mnt/dev/psaux c 10 1 chmod 440 mnt/dev/psaux chown 0:$phys_gid mnt/dev/psaux mknod mnt/dev/audio c 42 42 +chmod 220 mnt/dev/audio +chown 0:$audio_gid mnt/dev/audio mknod mnt/dev/ptmx c 5 2 -chmod 666 mnt/dev/audio chmod 666 mnt/dev/ptmx mknod mnt/dev/hda b 3 0 mknod mnt/dev/hdb b 3 1