summaryrefslogtreecommitdiffstats
path: root/etc/MAKEDEV
diff options
context:
space:
mode:
authorjoerg <joerg@FreeBSD.org>1997-03-05 14:04:00 +0000
committerjoerg <joerg@FreeBSD.org>1997-03-05 14:04:00 +0000
commit87a2ee48a6ae6584b8637aadfc0901c8a42df448 (patch)
tree682768247b6fe67397c9c7a88df92f82aafcc9cf /etc/MAKEDEV
parent20c91658b48454fc7554c126e6eed9f081b6a2d6 (diff)
downloadFreeBSD-src-87a2ee48a6ae6584b8637aadfc0901c8a42df448.zip
FreeBSD-src-87a2ee48a6ae6584b8637aadfc0901c8a42df448.tar.gz
Now that we can read from a worm device, handle their permissions as
we do for other disk devices, too.
Diffstat (limited to 'etc/MAKEDEV')
-rw-r--r--etc/MAKEDEV5
1 files changed, 4 insertions, 1 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index 0977480..2f5f210 100644
--- a/etc/MAKEDEV
+++ b/etc/MAKEDEV
@@ -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 `
;;
OpenPOWER on IntegriCloud