mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
Restored order of cuac above ttyc.
Fixed some style bugs for cua* and tty*. Removed superfluous chmod for consolectl. FIxed a tiny security bug for perfmon and changed the style for perfmon to match the style of the non-std devices.
This commit is contained in:
parent
aedfda0f82
commit
fab5b1c43d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=19177
62
etc/MAKEDEV
62
etc/MAKEDEV
@ -102,7 +102,7 @@
|
||||
# perfmon CPU performance-monitoring counters
|
||||
# pci PCI configuration-space access from user mode
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.124 1996/10/13 01:12:01 davidg Exp $
|
||||
# $Id: MAKEDEV,v 1.125 1996/10/22 20:41:03 se Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
@ -746,11 +746,31 @@ tty0?|ttyd?|tty?)
|
||||
chown root.wheel tty*d$unit
|
||||
;;
|
||||
|
||||
cuac?)
|
||||
umask 7
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
g h i j k l m n o p q r s t u v"
|
||||
major=48
|
||||
card=`expr $i : 'cua.*\(.\)$'`
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
minor=`expr $card \* 65536 + $minor`
|
||||
name=$card$unit
|
||||
rm -f cuac$name cuaic$name cualc$name
|
||||
mknod cuac$name c $major `expr $minor + 128`
|
||||
mknod cuaic$name c $major `expr $minor + 32 + 128`
|
||||
mknod cualc$name c $major `expr $minor + 64 + 192`
|
||||
chown uucp.dialer cuac$name cuaic$name cualc$name
|
||||
done
|
||||
umask 77
|
||||
;;
|
||||
|
||||
ttyc?)
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v"
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
g h i j k l m n o p q r s t u v"
|
||||
major=48
|
||||
card=`expr $i : 'tty.*\(.\)$'`
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
@ -764,26 +784,6 @@ ttyc?)
|
||||
done
|
||||
;;
|
||||
|
||||
cuac?)
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v"
|
||||
major=48
|
||||
card=`expr $i : 'cua.*\(.\)$'`
|
||||
umask 7
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
minor=`expr $card \* 65536 + $minor`
|
||||
name=$card$unit
|
||||
rm -f cuac$name cuaic$name cualc$name
|
||||
mknod cuac$name c $major `expr $minor + 128`
|
||||
mknod cuaic$name c $major `expr $minor + 160`
|
||||
mknod cualc$name c $major `expr $minor + 192`
|
||||
chown uucp.dialer cuac$name cuaic$name cualc$name
|
||||
done
|
||||
umask 77
|
||||
;;
|
||||
|
||||
# RISCom8 'rc' driver entries
|
||||
|
||||
cuam?)
|
||||
@ -829,6 +829,7 @@ ttyA*)
|
||||
chmod 600 si_control
|
||||
chown root.wheel si_control
|
||||
;;
|
||||
|
||||
cuaA*)
|
||||
umask 7
|
||||
major=68
|
||||
@ -858,7 +859,6 @@ ttyD?)
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
|
||||
major=58
|
||||
card=`expr $i : 'tty.*\(.\)$'`
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
@ -871,12 +871,12 @@ ttyD?)
|
||||
chown root.wheel tty*D$name
|
||||
done
|
||||
;;
|
||||
|
||||
cuaD?)
|
||||
umask 7
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
|
||||
major=58
|
||||
card=`expr $i : 'cua.*\(.\)$'`
|
||||
umask 7
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
@ -884,8 +884,8 @@ cuaD?)
|
||||
name=$card$unit
|
||||
rm -f cua*D$name
|
||||
mknod cuaD$name c $major `expr $minor + 128`
|
||||
mknod cuaiD$name c $major `expr $minor + 160`
|
||||
mknod cualD$name c $major `expr $minor + 192`
|
||||
mknod cuaiD$name c $major `expr $minor + 32 + 128`
|
||||
mknod cualD$name c $major `expr $minor + 64 + 192`
|
||||
chown uucp.dialer cua*D$name
|
||||
done
|
||||
umask 77
|
||||
@ -1085,7 +1085,6 @@ sysmouse)
|
||||
mknod sysmouse c 12 128
|
||||
mknod consolectl c 12 255
|
||||
chown root.wheel sysmouse consolectl
|
||||
chmod 600 sysmouse consolectl
|
||||
;;
|
||||
|
||||
snp?)
|
||||
@ -1195,7 +1194,10 @@ labpc*)
|
||||
;;
|
||||
|
||||
perfmon)
|
||||
mknod perfmon c 2 32; chmod 640 perfmon; chown root.kmem perfmon
|
||||
rm -f perfmon
|
||||
mknod perfmon c 2 32
|
||||
chown root.kmem perfmon
|
||||
chmod 640 perfmon
|
||||
;;
|
||||
|
||||
local)
|
||||
|
@ -102,7 +102,7 @@
|
||||
# perfmon CPU performance-monitoring counters
|
||||
# pci PCI configuration-space access from user mode
|
||||
#
|
||||
# $Id: MAKEDEV,v 1.124 1996/10/13 01:12:01 davidg Exp $
|
||||
# $Id: MAKEDEV,v 1.125 1996/10/22 20:41:03 se Exp $
|
||||
#
|
||||
|
||||
PATH=/sbin:/bin/:/usr/bin:/usr/sbin:
|
||||
@ -746,11 +746,31 @@ tty0?|ttyd?|tty?)
|
||||
chown root.wheel tty*d$unit
|
||||
;;
|
||||
|
||||
cuac?)
|
||||
umask 7
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
g h i j k l m n o p q r s t u v"
|
||||
major=48
|
||||
card=`expr $i : 'cua.*\(.\)$'`
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
minor=`expr $card \* 65536 + $minor`
|
||||
name=$card$unit
|
||||
rm -f cuac$name cuaic$name cualc$name
|
||||
mknod cuac$name c $major `expr $minor + 128`
|
||||
mknod cuaic$name c $major `expr $minor + 32 + 128`
|
||||
mknod cualc$name c $major `expr $minor + 64 + 192`
|
||||
chown uucp.dialer cuac$name cuaic$name cualc$name
|
||||
done
|
||||
umask 77
|
||||
;;
|
||||
|
||||
ttyc?)
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v"
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f
|
||||
g h i j k l m n o p q r s t u v"
|
||||
major=48
|
||||
card=`expr $i : 'tty.*\(.\)$'`
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
@ -764,26 +784,6 @@ ttyc?)
|
||||
done
|
||||
;;
|
||||
|
||||
cuac?)
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v"
|
||||
major=48
|
||||
card=`expr $i : 'cua.*\(.\)$'`
|
||||
umask 7
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
minor=`expr $card \* 65536 + $minor`
|
||||
name=$card$unit
|
||||
rm -f cuac$name cuaic$name cualc$name
|
||||
mknod cuac$name c $major `expr $minor + 128`
|
||||
mknod cuaic$name c $major `expr $minor + 160`
|
||||
mknod cualc$name c $major `expr $minor + 192`
|
||||
chown uucp.dialer cuac$name cuaic$name cualc$name
|
||||
done
|
||||
umask 77
|
||||
;;
|
||||
|
||||
# RISCom8 'rc' driver entries
|
||||
|
||||
cuam?)
|
||||
@ -829,6 +829,7 @@ ttyA*)
|
||||
chmod 600 si_control
|
||||
chown root.wheel si_control
|
||||
;;
|
||||
|
||||
cuaA*)
|
||||
umask 7
|
||||
major=68
|
||||
@ -858,7 +859,6 @@ ttyD?)
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
|
||||
major=58
|
||||
card=`expr $i : 'tty.*\(.\)$'`
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
@ -871,12 +871,12 @@ ttyD?)
|
||||
chown root.wheel tty*D$name
|
||||
done
|
||||
;;
|
||||
|
||||
cuaD?)
|
||||
umask 7
|
||||
portlist="0 1 2 3 4 5 6 7 8 9 a b c d e f"
|
||||
major=58
|
||||
card=`expr $i : 'cua.*\(.\)$'`
|
||||
umask 7
|
||||
|
||||
for unit in $portlist
|
||||
do
|
||||
minor=`ttyminor $unit`
|
||||
@ -884,8 +884,8 @@ cuaD?)
|
||||
name=$card$unit
|
||||
rm -f cua*D$name
|
||||
mknod cuaD$name c $major `expr $minor + 128`
|
||||
mknod cuaiD$name c $major `expr $minor + 160`
|
||||
mknod cualD$name c $major `expr $minor + 192`
|
||||
mknod cuaiD$name c $major `expr $minor + 32 + 128`
|
||||
mknod cualD$name c $major `expr $minor + 64 + 192`
|
||||
chown uucp.dialer cua*D$name
|
||||
done
|
||||
umask 77
|
||||
@ -1085,7 +1085,6 @@ sysmouse)
|
||||
mknod sysmouse c 12 128
|
||||
mknod consolectl c 12 255
|
||||
chown root.wheel sysmouse consolectl
|
||||
chmod 600 sysmouse consolectl
|
||||
;;
|
||||
|
||||
snp?)
|
||||
@ -1195,7 +1194,10 @@ labpc*)
|
||||
;;
|
||||
|
||||
perfmon)
|
||||
mknod perfmon c 2 32; chmod 640 perfmon; chown root.kmem perfmon
|
||||
rm -f perfmon
|
||||
mknod perfmon c 2 32
|
||||
chown root.kmem perfmon
|
||||
chmod 640 perfmon
|
||||
;;
|
||||
|
||||
local)
|
||||
|
Loading…
Reference in New Issue
Block a user