Now that we can read from a worm device, handle their permissions as

we do for other disk devices, too.
This commit is contained in:
joerg 1997-03-05 14:04:00 +00:00
parent 20c91658b4
commit 87a2ee48a6
2 changed files with 8 additions and 2 deletions

View File

@ -103,7 +103,7 @@
# perfmon CPU performance-monitoring counters
# pci PCI configuration-space access from user mode
#
# $Id$
# $Id: MAKEDEV,v 1.137 1997/03/03 16:13:35 bde Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@ -477,6 +477,7 @@ uk*)
;;
worm*)
umask $disk_umask
unit=`expr $i : 'worm\(.*\)'`
if [ "X${unit}" = "X" ]; then
unit=0
@ -488,6 +489,8 @@ worm*)
mknod ${name}${unit} b $blk ${unit}
rm -f r${name}${unit}
mknod r${name}${unit} c $chr ${unit}
chgrp operator ${name}${unit} r${name}${unit}
umask 077
rm -f r${name}${unit}.ctl
mknod r${name}${unit}.ctl c $chr `expr $unit + $scsictl `
;;

View File

@ -103,7 +103,7 @@
# perfmon CPU performance-monitoring counters
# pci PCI configuration-space access from user mode
#
# $Id$
# $Id: MAKEDEV,v 1.137 1997/03/03 16:13:35 bde Exp $
#
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:$PATH
@ -477,6 +477,7 @@ uk*)
;;
worm*)
umask $disk_umask
unit=`expr $i : 'worm\(.*\)'`
if [ "X${unit}" = "X" ]; then
unit=0
@ -488,6 +489,8 @@ worm*)
mknod ${name}${unit} b $blk ${unit}
rm -f r${name}${unit}
mknod r${name}${unit} c $chr ${unit}
chgrp operator ${name}${unit} r${name}${unit}
umask 077
rm -f r${name}${unit}.ctl
mknod r${name}${unit}.ctl c $chr `expr $unit + $scsictl `
;;