smdev

suckless mdev
git clone git://git.suckless.org/smdev
Log | Files | Refs | README | LICENSE

commit 2855c54be92346f2b2f5816ca6cc2953fbb3c975
parent fcda082f0f67489b07a9f9d2b5fa0bc843ae9919
Author: sin <sin@2f30.org>
Date:   Mon, 17 Feb 2014 14:12:39 +0000

Handle /dev/input/* devices correctly

Diffstat:
Mconfig.def.h | 36++++++++++++++++++++----------------
1 file changed, 20 insertions(+), 16 deletions(-)

diff --git a/config.def.h b/config.def.h @@ -7,20 +7,24 @@ struct rule { const char *path; const char *cmd; } rules[] = { - { "null", "root", "root", 0666, NULL, "@chmod 666 $SMDEV" }, - { "zero", "root", "root", 0666, NULL, NULL }, - { "full", "root", "root", 0666, NULL, NULL }, - { "random", "root", "root", 0666, NULL, NULL }, - { "urandom", "root", "root", 0666, NULL, NULL }, - { "mem", "root", "root", 0640, NULL, NULL }, - { "kmem", "root", "root", 0640, NULL, NULL }, - { "console", "root", "tty", 0600, NULL, "@chmod 600 $SMDEV" }, - { "ptmx", "root", "tty", 0666, NULL, NULL }, - { "pty.*", "root", "tty", 0660, NULL, NULL }, - { "tty", "root", "tty", 0666, NULL, NULL }, - { "tty[0-9]*", "root", "tty", 0660, NULL, NULL }, - { "vcsa*[0-9]*","root", "tty", 0660, NULL, NULL }, - { "sd[a-z].*", "root", "disk", 0660, NULL, NULL }, - { "sr[0-9]*", "root", "cdrom", 0660, NULL, "@ln -sf $SMDEV /dev/cdrom" }, - { ".*", "root", "root", 0660, NULL, NULL }, + { "null", "root", "root", 0666, NULL, "@chmod 666 $SMDEV" }, + { "zero", "root", "root", 0666, NULL, NULL }, + { "full", "root", "root", 0666, NULL, NULL }, + { "random", "root", "root", 0666, NULL, NULL }, + { "urandom", "root", "root", 0666, NULL, NULL }, + { "mem", "root", "root", 0640, NULL, NULL }, + { "kmem", "root", "root", 0640, NULL, NULL }, + { "console", "root", "tty", 0600, NULL, "@chmod 600 $SMDEV" }, + { "ptmx", "root", "tty", 0666, NULL, NULL }, + { "pty.*", "root", "tty", 0660, NULL, NULL }, + { "tty", "root", "tty", 0666, NULL, NULL }, + { "tty[0-9]*", "root", "tty", 0660, NULL, NULL }, + { "vcsa*[0-9]*", "root", "tty", 0660, NULL, NULL }, + { "sd[a-z].*", "root", "disk", 0660, NULL, NULL }, + { "sr[0-9]*", "root", "cdrom", 0660, NULL, "@ln -sf $SMDEV /dev/cdrom" }, + { "event[0-9]+", "root", "root", 0640, "=input/", NULL }, + { "mice", "root", "root", 0640, "=input/", NULL }, + { "mouse[0-9]+", "root", "root", 0640, "=input/", NULL }, + { "ts[0-9]+", "root", "root", 0640, "=input/", NULL }, + { ".*", "root", "root", 0660, NULL, NULL }, };