diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2004-02-10 01:31:22 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2004-02-10 01:31:22 +0000 |
commit | 85848b86166719fe7164148608daa490bf9bfcdb (patch) | |
tree | 669ff49bb8253462e9b1fb75ac23bdbc1e344261 /etc/etc.hppa | |
parent | 92344befec63515228572bc04de856dfae3b3c00 (diff) |
Add the ptm device to pty(4). By opening /dev/ptm and using the PTMGET
ioctl(2), an unprivileged process may allocate a pty and have its owner
and mode set appropriately. This means that programs such as xterm and
screen no longer need to be setuid. Programs using the openpty()
function require zero changes and will "just work".
Designed by beck@ and deraadt@; changes by beck@ with cleanup (and
a rewrite of the vnode bits) by art@ and tweaks/bugfixes by me.
Tested by many.
Diffstat (limited to 'etc/etc.hppa')
-rw-r--r-- | etc/etc.hppa/MAKEDEV | 11 | ||||
-rw-r--r-- | etc/etc.hppa/MAKEDEV.md | 3 |
2 files changed, 10 insertions, 4 deletions
diff --git a/etc/etc.hppa/MAKEDEV b/etc/etc.hppa/MAKEDEV index 0c939a5ae0f..2381cb1cea6 100644 --- a/etc/etc.hppa/MAKEDEV +++ b/etc/etc.hppa/MAKEDEV @@ -41,6 +41,7 @@ # Pseudo terminals: # tty* set of 16 slave psuedo terminals # pty* set of 16 master pseudo terminals +# ptm pty master device # Printers: # lpt* IEEE 1284 centronics printer # Console ports: @@ -340,6 +341,10 @@ lpt*|lpa*) M $n$U c 30 $(($U+$f)) 600 ;; +ptm) + M ptm c 38 0 666 + ;; + pty*) if [ $U -gt 15 ]; then echo bad unit for pty in: $i @@ -425,9 +430,9 @@ all) R cd0 cd1 rd0 tun0 tun1 tun2 tun3 bpf0 bpf1 bpf2 bpf3 bpf4 R bpf5 bpf6 bpf7 bpf8 bpf9 pty0 pty1 pty2 fd1 fd1B fd1C fd1D R fd1E fd1F fd1G fd1H fd0 fd0B fd0C fd0D fd0E fd0F fd0G fd0H - R xfs0 ss0 ss1 ch0 ses0 wscons pci audio0 uk0 random lpa0 lpa1 - R lpa2 lpt0 lpt1 lpt2 lkm tty00 tty01 tty02 tty03 crypto pf - R systrace std st0 st1 fd + R xfs0 ss0 ss1 ch0 ses0 ptm wscons pci audio0 uk0 random lpa0 + R lpa1 lpa2 lpt0 lpt1 lpt2 lkm tty00 tty01 tty02 tty03 crypto + R pf systrace std st0 st1 fd ;; sd*|ccd*) diff --git a/etc/etc.hppa/MAKEDEV.md b/etc/etc.hppa/MAKEDEV.md index 2bef1e12100..72498d0c244 100644 --- a/etc/etc.hppa/MAKEDEV.md +++ b/etc/etc.hppa/MAKEDEV.md @@ -1,5 +1,5 @@ vers(__file__, - {-$OpenBSD: MAKEDEV.md,v 1.16 2003/12/09 04:27:51 mickey Exp $-}, + {-$OpenBSD: MAKEDEV.md,v 1.17 2004/02/10 01:31:20 millert Exp $-}, etc.MACHINE)dnl dnl dnl Copyright (c) 2001,2002,2003 Todd T. Fries <todd@OpenBSD.org> @@ -35,6 +35,7 @@ _DEV(com, 23) _TITLE(pty) _DEV(tty, 4) _DEV(pty, 5) +_DEV(ptm, 38) _TITLE(prn) _DEV(lpt, 30) _TITLE(cons) |