Module Name: src
Committed By: riz
Date: Mon Aug 13 19:52:30 UTC 2012
Modified Files:
src/etc [netbsd-6]: MAKEDEV.tmpl
Log Message:
Pull up following revision(s) (requested by christos in ticket #490):
etc/MAKEDEV.tmpl: revision 1.157
Don't create BSD style pty nodes by default anymore since ptyfs is mounted
by default. Mention that this is a security issue, since it allows pty access
through the old style node. While here, pull up revision 1.54 (wedges) to
reduces diffs to -current
To generate a diff of this commit:
cvs rdiff -u -r1.151.2.3 -r1.151.2.4 src/etc/MAKEDEV.tmpl
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/etc/MAKEDEV.tmpl
diff -u src/etc/MAKEDEV.tmpl:1.151.2.3 src/etc/MAKEDEV.tmpl:1.151.2.4
--- src/etc/MAKEDEV.tmpl:1.151.2.3 Thu Jun 28 04:48:25 2012
+++ src/etc/MAKEDEV.tmpl Mon Aug 13 19:52:30 2012
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $NetBSD: MAKEDEV.tmpl,v 1.151.2.3 2012/06/28 04:48:25 riz Exp $
+# $NetBSD: MAKEDEV.tmpl,v 1.151.2.4 2012/08/13 19:52:30 riz Exp $
#
# Copyright (c) 2003,2007,2008 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -804,7 +804,9 @@ case $i in
all)
makedev all_md
- makedev std fd ptm pty0 pty1 pty2 pty3
+ makedev std fd ptm
+ makedev dk0 dk1 dk2 dk3 dk4 dk5 dk6 dk7
+ makedev dk8 dk9 dk10 dk11 dk12 dk13 dk14 dk15
makedev ccd0 ccd1 ccd2 ccd3
makedev cgd0 cgd1 cgd2 cgd3
makedev fss0 fss1 fss2 fss3
@@ -1269,6 +1271,7 @@ pty[0-9]*)
# pty16 => 16 pairs, [tp]typg to [tp]typv
# pty17 => 16 pairs, [tp]typw to [tp]typL
# pty18 => 14 pairs, [tp]typM to [tp]typZ
+ warn "$i: creating BSD style tty nodes with ptyfs is a security issue"
class=${i#pty}
d1="p q r s t u v w x y z P Q R S T"
if [ "$class" -ge 64 ]