summaryrefslogtreecommitdiffstats
path: root/src/lib/etc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/etc')
-rw-r--r--src/lib/etc/mdev.conf32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/lib/etc/mdev.conf b/src/lib/etc/mdev.conf
new file mode 100644
index 0000000..cb71b25
--- /dev/null
+++ b/src/lib/etc/mdev.conf
@@ -0,0 +1,32 @@
+# mdevd-conf
+# null, zero may already exist; therefore ownership has to be changed with command
+null root:root 666 +importas -S MDEV chmod 666 $MDEV
+zero root:root 666 +importas -S MDEV chmod 666 $MDEV
+urandom root:root 666
+random root:root 666
+full root:root 666
+fuse root:root 666
+
+# console may already exist; therefore ownership has to be changed with command
+console root:tty 600 +importas -S MDEV chmod 600 $MDEV
+tty root:tty 666
+ttyS.* root:dialout 660
+tty.* root:tty 620
+ptmx root:tty 666
+
+snd/.* root:audio 660
+
+uinput root:input 660
+input/.* root:input 660
+bus/usb/.*/.* root:usb 660
+
+mem root:kmem 640
+kmem root:kmem 640
+port root:kmem 640
+
+dri/card.* root:video 660
+dri/render.* root:render 666
+
+kfd root:render 666
+-SUBSYSTEM=block;.* root:disk 660 +mddc-add-block-sym
+SUBSYSTEM=block;.* root:disk 660 -mddc-del-block-sym