commit 747489d696c8992f06f279eda75dcda961af1869
parent 7550047abc4f7db1da453ae8927866b512f95a03
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Mon, 7 Apr 2014 17:26:30 +0200
config: use tabs
Signed-off-by: Hiltjo Posthuma <hiltjo@codemadness.org>
Diffstat:
M | config.def.h | | | 80 | ++++++++++++++++++++++++++++++++++++++++---------------------------------------- |
1 file changed, 40 insertions(+), 40 deletions(-)
diff --git a/config.def.h b/config.def.h
@@ -1,44 +1,44 @@
/* See LICENSE file for copyright and license details. */
struct rule {
- const char *devregex;
- const char *user;
- const char *group;
- int mode;
- const char *path;
- const char *cmd;
+ const char *devregex;
+ const char *user;
+ const char *group;
+ int mode;
+ 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", 0444, NULL, NULL },
- { "hwrandom", "root", "root", 0660, NULL, NULL },
- { "mem", "root", "root", 0640, NULL, NULL },
- { "kmem", "root", "root", 0640, NULL, NULL },
- { "port", "root", "root", 0640, NULL, NULL },
- { "console", "root", "tty", 0600, NULL, "@chmod 600 $SMDEV" },
- { "ptmx", "root", "tty", 0666, NULL, NULL },
- { "tty", "root", "tty", 0666, NULL, NULL },
- { "tty[0-9]", "root", "root", 0600, NULL, NULL },
- { "tty[0-9][0-9]","root", "tty", 0660, NULL, NULL },
- { "ttyS[0-9]*", "root", "tty", 0660, NULL, NULL, },
- { "pty.*", "root", "tty", 0660, NULL, NULL },
- { "vcs[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 },
- { "card[0-9]", "root", "video", 0660, "=dri/", NULL },
- { "pcm.*", "root", "audio", 0660, "=snd/", NULL },
- { "control.*", "root", "audio", 0660, "=snd/", NULL },
- { "midi.*", "root", "audio", 0660, "=snd/", NULL },
- { "seq", "root", "audio", 0660, "=snd/", NULL },
- { "timer", "root", "audio", 0660, "=snd/", NULL },
- { "rtc[0-9]*", "root", "root", 0664, NULL, NULL },
- { "vbi[0-9]", "root", "video", 0660, NULL, NULL },
- { "video[0-9]", "root", "video", 0660, NULL, NULL },
- { ".*", "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", 0444, NULL, NULL },
+ { "hwrandom", "root", "root", 0660, NULL, NULL },
+ { "mem", "root", "root", 0640, NULL, NULL },
+ { "kmem", "root", "root", 0640, NULL, NULL },
+ { "port", "root", "root", 0640, NULL, NULL },
+ { "console", "root", "tty", 0600, NULL, "@chmod 600 $SMDEV" },
+ { "ptmx", "root", "tty", 0666, NULL, NULL },
+ { "tty", "root", "tty", 0666, NULL, NULL },
+ { "tty[0-9]", "root", "root", 0600, NULL, NULL },
+ { "tty[0-9][0-9]","root", "tty", 0660, NULL, NULL },
+ { "ttyS[0-9]*", "root", "tty", 0660, NULL, NULL, },
+ { "pty.*", "root", "tty", 0660, NULL, NULL },
+ { "vcs[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 },
+ { "card[0-9]", "root", "video", 0660, "=dri/", NULL },
+ { "pcm.*", "root", "audio", 0660, "=snd/", NULL },
+ { "control.*", "root", "audio", 0660, "=snd/", NULL },
+ { "midi.*", "root", "audio", 0660, "=snd/", NULL },
+ { "seq", "root", "audio", 0660, "=snd/", NULL },
+ { "timer", "root", "audio", 0660, "=snd/", NULL },
+ { "rtc[0-9]*", "root", "root", 0664, NULL, NULL },
+ { "vbi[0-9]", "root", "video", 0660, NULL, NULL },
+ { "video[0-9]", "root", "video", 0660, NULL, NULL },
+ { ".*", "root", "root", 0660, NULL, NULL },
};