From:	CSBVAX::MRGATE!gkn@M5.Sdsc.Edu@SMTP  1-MAY-1988 22:44
To:	ARISIA::EVERHART
Subj:	PTY drivers vs. DEC's latest security patch


Received: from M5.Sdsc.Edu by KL.SRI.COM with TCP; Fri 29 Apr 88 11:13:32-PDT
Date:    Fri, 29 Apr 88 18:12:56 GMT
From:     gkn@M5.Sdsc.Edu (Gerard K. Newman)
Message-Id: <880429181257.210000bb@M5.Sdsc.Edu>
Subject: PTY drivers vs. DEC's latest security patch
To:       info-vax@kl.sri.com
X-ST-Vmsmail-To: VMSA::MIGLESIAS,ST%"Info-VAX@KL.SRI.COM"

Here's a slightly different patch to the TPDRIVER which allows PHOTO, BOSS,
and friends to work without modification.  This is better than setting
TTY_PROT to 0.  It's also a little tighter than Tony Cook's  patch, which
essentially did the same thing as setting TTY_PROT to 0.

This is in routine TP$INITLINE::, after the call to CLASS_SETUP_UCB.

************
File U$8:[GKN.PTY]TQDRIVER.MAR;3
  411   	MOVL	UCB$L_TP_XUCB(R5),R0		; Address our PY control device UCB
  412   	MOVL	UCB$L_ORB(R0),R0		; Get the ORB address
  413   	MOVL	UCB$L_ORB(R5),R1		; Get our own ORB address
  414   	MOVL	ORB$L_OWNER(R0),ORB$L_OWNER(R1)	; Set the ownership correctly
  415   	CLRB	ORB$W_PROT(R1)			; Allow the owner write access.
  416           bisw    #TTY$M_PC_NOTIME, -
******
File U$8:[GKN.PTY]TQDRIVER.MAR;2
  407           bisw    #TTY$M_PC_NOTIME, -
************

gkn
----------------------------------------
Internet: GKN@SDS.SDSC.EDU
Bitnet:   GKN@SDSC
Span:     SDSC::GKN (27.1)
MFEnet:   GKN@SDS
USPS:     Gerard K. Newman
          San Diego Supercomputer Center
          P.O. Box 8560
          San Diego, CA 92138-5608
Phone:    619.534.5076
