<?xml version="1.0" encoding="UTF-8" ?> <einit> <configuration> <edev> <!-- these rules operate directly on the data we get from the kernel; all values used to match something are regexes. NOTE: it's usually easy to distinguish between what's used in matches and what's not, because the kernel vars are usually all upper-case, and the settings to change tend to be lowercase. --> <!-- default rules (if nothing matches or that part isn't changed): user: root, chmod: 0660; group: if a group with the name of the subsystem exists, then that's the node's group, else the node's group is "root". devicename/symlink: (wih SUBSYSTEM): /dev/${DEVPATH_BASE} -> /dev/${SUBSYSTEM}/${DEVPATH_BASE} (without SUBYSTEM): /dev/${DEVPATH_BASE} (no symlink) /dev is NOT prefixed to device names when looking for data, edev will keep looking farther up until all fields have a value to use. --> <devicefile-rule SUBSYSTEM="^block$" blockdevice="yes" /> <devicefile-rule chmod="0660" devicefile="/dev/${DEVPATH_BASE}" /> <devicefile-rule SUBSYSTEM="^.*+$" group="${SUBSYSTEM}" symlink="/dev/${DEVPATH_BASE}" devicefile="/dev/${SUBSYSTEM}/${DEVPATH_BASE}" /> <devicefile-rule SUBSYSTEM="^mem$" devicefile="/dev/${DEVPATH_BASE}" /> <devicefile-rule DEVPATH_BASE="^(console|mem)$" chmod="0660" devicefile="/dev/${DEVPATH_BASE}" /> <devicefile-rule DEVPATH_BASE="^(zero|null|ptmx|random|urandom|tty|fuse)$" chmod="0666" devicefile="/dev/${DEVPATH_BASE}" /> <devicefile-rule SUBSYSTEM="^input$" chmod="0640" /> <devicefile-rule DEVPATH_BASE="^(rtc|rtc0)$" chmod="0644" devicefile="/dev/${DEVPATH_BASE}" /> <devicefile-rule DEVPATH_BASE="^rtc0$" symlink="/dev/rtc" /> <!-- the following rules /would/ usually make sense, however due to the handling, they're completely obsolete and would thus only increase the time it takes to find a rule. --> <!-- <devicefile-rule SUBSYSTEM="^tty$" group="tty" chmod="0660" /> <devicefile-rule SUBSYSTEM="^disk$" group="disk" chmod="0660" /> --> </edev> </configuration> </einit>