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

CVS: cvs.openbsd.org: src

Module name:	src
Changes by:	millert_(_at_)_cvs_(_dot_)_openbsd_(_dot_)_org	2004/02/09 18:31:22

Modified files:
	etc            : MAKEDEV.mi 
	etc/etc.alpha  : MAKEDEV MAKEDEV.md 
	etc/etc.cats   : MAKEDEV.md 
	etc/etc.hp300  : MAKEDEV MAKEDEV.md 
	etc/etc.hppa   : MAKEDEV MAKEDEV.md 
	etc/etc.i386   : MAKEDEV MAKEDEV.md 
	etc/etc.mac68k : MAKEDEV MAKEDEV.md 
	etc/etc.macppc : MAKEDEV MAKEDEV.md 
	etc/etc.mvme68k: MAKEDEV MAKEDEV.md 
	etc/etc.mvme88k: MAKEDEV MAKEDEV.md 
	etc/etc.mvmeppc: MAKEDEV.md 
	etc/etc.pegasos: MAKEDEV MAKEDEV.md 
	etc/etc.sparc  : MAKEDEV MAKEDEV.md 
	etc/etc.sparc64: MAKEDEV MAKEDEV.md 
	etc/etc.vax    : MAKEDEV MAKEDEV.md 
	lib/libutil    : openpty.3 pty.c 
	regress/sys/kern: Makefile 
	share/man/man4 : pty.4 
	sys/arch/alpha/alpha: conf.c 
	sys/arch/amd64/amd64: conf.c 
	sys/arch/arm/arm: conf.c 
	sys/arch/hp300/hp300: conf.c 
	sys/arch/hppa/hppa: conf.c 
	sys/arch/i386/i386: conf.c 
	sys/arch/mac68k/mac68k: conf.c 
	sys/arch/macppc/macppc: conf.c 
	sys/arch/mvme68k/mvme68k: conf.c 
	sys/arch/mvme88k/mvme88k: conf.c 
	sys/arch/mvmeppc/mvmeppc: conf.c 
	sys/arch/pegasos/pegasos: conf.c 
	sys/arch/sparc/sparc: conf.c 
	sys/arch/sparc64/sparc64: conf.c 
	sys/arch/vax/vax: conf.c 
	sys/kern       : tty_pty.c 
	sys/sys        : conf.h tty.h 

Log message:
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.