diff options
author | n_hibma <n_hibma@FreeBSD.org> | 2001-01-07 18:43:31 +0000 |
---|---|---|
committer | n_hibma <n_hibma@FreeBSD.org> | 2001-01-07 18:43:31 +0000 |
commit | fc589915cc363c0b916f561836207f329fa1a8a9 (patch) | |
tree | 645a1bc129078e8164d472b8f4af715a9247cdaf /etc/MAKEDEV | |
parent | ccbb4e0cbb8363581c7e13c8c644a47ce4a71deb (diff) | |
download | FreeBSD-src-fc589915cc363c0b916f561836207f329fa1a8a9.zip FreeBSD-src-fc589915cc363c0b916f561836207f329fa1a8a9.tar.gz |
Give the USB devices sensible default permissions.
Suggested by: Kaltashkin Eugene <zhecka@klondike.ru>
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r-- | etc/MAKEDEV | 40 |
1 files changed, 28 insertions, 12 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV index 9ce6932..b0b887c0 100644 --- a/etc/MAKEDEV +++ b/etc/MAKEDEV @@ -975,19 +975,24 @@ usb) ;; usb*) + umask 7 unit=`expr $i : 'usb\(.*\)'` mknod usb$unit c 108 `unit2minor $unit` root:operator - chmod 0660 usb$unit + umask 77 ;; uhid*) + umask 7 unit=`expr $i : 'uhid\(.*\)'` - mknod uhid$unit c 122 `unit2minor $unit` + mknod uhid$unit c 122 `unit2minor $unit` root:operator + umask 77 ;; ums*) + umask 7 unit=`expr $i : 'ums\(.*\)'` - mknod ums$unit c 111 `unit2minor $unit` + mknod ums$unit c 111 `unit2minor $unit` root:operator + umask 77 ;; ulpt*) @@ -999,45 +1004,56 @@ ulpt*) ;; ugen*) + umask 7 unit=`expr $i : 'ugen\([0-9][0-9]*\)'` endpoint=`expr $i : 'ugen.*\.\([0-9][0-9]*\)'` if [ -z "${unit}" ]; then echo $i - Invalid unit number fi if [ -z "${endpoint}" ]; then # ugen0 & ugen0.1 - ugen0.15 - mknod ugen$unit c 114 `unit2minor $(($unit * 16))` + mknod ugen$unit c 114 \ + `unit2minor $(($unit * 16))` root:operator i=1 while [ $i -lt 16 ]; do mknod ugen$unit.$i c 114 \ - `unit2minor $(($unit * 16 + $i))` + `unit2minor $(($unit * 16 + $i))` root:operator i=$(($i + 1)) done else minor=`unit2minor $(($unit * 16 + $endpoint))` - mknod ugen$unit.$endpoint c 114 $minor + mknod ugen$unit.$endpoint c 114 $minor root:operator fi + umask 77 ;; urio*) + umask 7 unit=`expr $i : 'urio\(.*\)'` - mknod urio$unit c 143 `unit2minor $unit` + mknod urio$unit c 143 `unit2minor $unit` root:operator + umask 77 ;; usio*) + umask 7 unit=`expr $i : 'usio\(.*\)'` minor=`unit2minor $(($unit + 128))` - mknod usio$unit c 138 $minor + mknod usio$unit c 138 $minor uucp:dialer + umask 77 ;; uscanner*) + umask 7 unit=`expr $i : 'uscanner\(.*\)'` - mknod uscanner$unit c 156 `unit2minor $unit` + mknod uscanner$unit c 156 `unit2minor $unit` root:operator + umask 77 ;; umodem*) - unit=`expr $i : 'umodem\(.*\)'` - mknod umodem$unit c 124 `unit2minor $unit` - ;; + umask 7 + unit=`expr $i : 'umodem\(.*\)'` + mknod umodem$unit c 124 `unit2minor $unit` uucp:dialer + umask 77 + ;; lpt*) unit=`expr $i : 'lpt\(.*\)'` |