devfs-permissions is laughably inadequate

This commit is contained in:
Jack L. Frost 2015-01-06 02:17:49 +03:00
parent 4254f465e1
commit 902a5e994e
2 changed files with 0 additions and 25 deletions

View File

@ -1,8 +0,0 @@
#!/usr/bin/env watchman
# Config for devfs-permissions
cfg_devices=(
'/dev/snd;root:audio;770'
'/dev/dri;root:video;770'
'/dev/fuse;root:root;777'
)

View File

@ -1,17 +0,0 @@
#!/usr/bin/env watchman
# This is a script to set up the right permissions in /dev in absence of e?(u|s?m)dev.
service_type='oneshot'
# Config moved to conf.d
spawn() {
for d in "${cfg_devices[@]}"; do
IFS=';' read device owner perms <<< "$d"
[[ -e "$device" ]] && {
chown -R "$owner" "$device"
chmod -R "$perms" "$device"
}
done
}