aboutsummaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorJoerg Wunsch <joerg@FreeBSD.org>1997-03-05 14:04:00 +0000
committerJoerg Wunsch <joerg@FreeBSD.org>1997-03-05 14:04:00 +0000
commit7030cda0544fe0ed972b277726e3ef55855bd1cf (patch)
tree4548a29f9663376488e4e609681819ad1bb731ef /etc
parent423f22330ae7079ac48dfeddc61ec57a5481e6a8 (diff)
downloadsrc-7030cda0544fe0ed972b277726e3ef55855bd1cf.tar.gz
src-7030cda0544fe0ed972b277726e3ef55855bd1cf.zip
Now that we can read from a worm device, handle their permissions as
we do for other disk devices, too.
Notes
Notes: svn path=/head/; revision=23403
Diffstat (limited to 'etc')
-rw-r--r--etc/MAKEDEV5
-rw-r--r--etc/etc.i386/MAKEDEV5
2 files changed, 8 insertions, 2 deletions
diff --git a/etc/MAKEDEV b/etc/MAKEDEV
index 0977480bf7e0..2f5f210f17c6 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 `
;;
diff --git a/etc/etc.i386/MAKEDEV b/etc/etc.i386/MAKEDEV
index 0977480bf7e0..2f5f210f17c6 100644
--- a/etc/etc.i386/MAKEDEV
+++ b/etc/etc.i386/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 `
;;