From: Eric Andersen Date: Mon, 24 Mar 2003 19:09:22 +0000 (-0000) Subject: Create a more multi-user friendly set of device perms X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d8d1f8a65b63e7f61e07d1f9343b00e92cb58d33;p=buildroot.git Create a more multi-user friendly set of device perms --- diff --git a/sources/device_table.txt b/sources/device_table.txt index 90c2a08cdc..404f32a61f 100644 --- a/sources/device_table.txt +++ b/sources/device_table.txt @@ -37,26 +37,48 @@ /dev/pts d 755 0 0 - - - - - /tmp d 1777 0 0 - - - - - /etc d 755 0 0 - - - - - +/home/default d 2755 1000 1000 - - - - - +# Adjust permissions on some normal files +/etc/shadow f 600 0 0 - - - - - +/etc/passwd f 644 0 0 - - - - - +/bin/tinylogin f 4755 0 0 - - - - - +# uncomment this to allow starting x as non-root +#/usr/X11R6/bin/Xfbdev f 4755 0 0 - - - - - + +# Normal system devices /dev/mem c 640 0 0 1 1 0 0 - /dev/kmem c 640 0 0 1 2 0 0 - -/dev/null c 640 0 0 1 3 0 0 - -/dev/zero c 640 0 0 1 5 0 0 - -/dev/random c 640 0 0 1 8 0 0 - -/dev/urandom c 640 0 0 1 9 0 0 - -/dev/tty c 666 0 0 5 0 0 0 - -/dev/tty c 666 0 0 4 0 0 1 6 -/dev/console c 640 0 0 5 1 0 0 - +/dev/null c 666 0 0 1 3 0 0 - +/dev/zero c 666 0 0 1 5 0 0 - +/dev/random c 666 0 0 1 8 0 0 - +/dev/urandom c 666 0 0 1 9 0 0 - /dev/ram b 640 0 0 1 1 0 0 - /dev/ram b 640 0 0 1 0 0 1 4 /dev/loop b 640 0 0 7 0 0 1 2 -/dev/ptmx c 666 0 0 5 2 0 0 - -/dev/ttyS c 640 0 0 4 64 0 1 4 -/dev/psaux c 640 0 0 10 1 0 0 - -#/dev/rtc c 640 0 0 10 135 0 0 - +/dev/rtc c 640 0 0 10 135 - - - +/dev/console c 666 0 0 5 1 - - - +/dev/tty c 666 0 0 5 0 - - - +/dev/tty c 666 0 0 4 0 0 1 8 +/dev/ttyp c 666 0 0 3 0 0 1 10 +/dev/ptyp c 666 0 0 2 0 0 1 10 +/dev/ptmx c 666 0 0 5 2 - - - +/dev/ttyP c 666 0 0 57 0 0 1 4 +/dev/ttyS c 666 0 0 4 64 0 1 4 +/dev/fb c 640 0 5 29 0 0 32 4 +#/dev/ttySA c 666 0 0 204 5 0 1 3 +/dev/psaux c 666 0 0 10 1 0 0 - +#/dev/ppp c 666 0 0 108 0 - - - -# Adjust permissions on some normal files -/etc/shadow f 600 0 0 - - - - - -/bin/tinylogin f 4755 0 0 - - - - - +# MTD stuff +/dev/mtd c 640 0 0 90 0 0 2 4 +/dev/mtdblock b 640 0 0 31 0 0 1 4 + +# Audio stuff +#/dev/audio c 666 0 29 14 4 - - - +#/dev/audio1 c 666 0 29 14 20 - - - +#/dev/dsp c 666 0 29 14 3 - - - +#/dev/dsp1 c 666 0 29 14 19 - - - +#/dev/sndstat c 666 0 29 14 6 - - - # User-mode Linux stuff /dev/ubda b 640 0 0 98 0 0 0 -