Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-6]: src/etc Pull up following revision(s) (requested by christos ...



details:   https://anonhg.NetBSD.org/src/rev/87a1cedadd88
branches:  netbsd-6
changeset: 774434:87a1cedadd88
user:      riz <riz%NetBSD.org@localhost>
date:      Mon Aug 13 19:52:30 2012 +0000

description:
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

diffstat:

 etc/MAKEDEV.tmpl |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (29 lines):

diff -r b48e8cc804ce -r 87a1cedadd88 etc/MAKEDEV.tmpl
--- a/etc/MAKEDEV.tmpl  Mon Aug 13 19:43:44 2012 +0000
+++ b/etc/MAKEDEV.tmpl  Mon Aug 13 19:52:30 2012 +0000
@@ -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 @@
 
 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 @@
        # 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 ]



Home | Main Index | Thread Index | Old Index