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.hp300/MAKEDEV | |
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.hp300/MAKEDEV')
-rw-r--r-- | etc/etc.hp300/MAKEDEV | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/etc/etc.hp300/MAKEDEV b/etc/etc.hp300/MAKEDEV index 5709d84e427..683c782ae93 100644 --- a/etc/etc.hp300/MAKEDEV +++ b/etc/etc.hp300/MAKEDEV @@ -44,6 +44,7 @@ # Pseudo terminals: # tty* set of 16 slave psuedo terminals # pty* set of 16 master pseudo terminals +# ptm pty master device # Printers: # ppi* HP-IB plotters # Call units: @@ -343,6 +344,10 @@ fd) MKlist="$MKlist;chmod 555 fd" ;; +ptm) + M ptm c 52 0 666 + ;; + pty*) if [ $U -gt 15 ]; then echo bad unit for pty in: $i @@ -402,7 +407,7 @@ all) R ite0 ct0 ct1 hd0 hd1 hd2 dcm0 dcm1 dcm2 dcm3 dca0 dca1 st0 R st1 hil grf0 ccd0 ccd1 ccd2 ccd3 vnd0 vnd1 vnd2 vnd3 sd0 sd1 R sd2 sd3 sd4 rd0 tun0 tun1 tun2 tun3 bpf0 bpf1 bpf2 bpf3 bpf4 - R bpf5 bpf6 bpf7 bpf8 bpf9 pty0 pty1 pty2 xfs0 local ppi0 + R bpf5 bpf6 bpf7 bpf8 bpf9 pty0 pty1 pty2 xfs0 ptm local ppi0 R apci0 random lkm pf systrace std fd ;; |