Amendments to pconsole fast-track [PSARC/2009/275 FastTrack timeout 05/08/2009]

Gary Winiger gww at sac.sfbay.sun.com
Thu May 7 10:14:18 PDT 2009


> From Norm.Jacobs at sun.com Wed May  6 22:07:44 2009
> Date: Thu, 07 May 2009 00:07:39 -0500
> From: Norm Jacobs <Norm.Jacobs at sun.com>
> Subject: Re: Amendments to pconsole fast-track [PSARC/2009/275 FastTrack
>  timeout 05/08/2009]
> To: Gary Winiger <gww at eng.sun.com>
> Cc: gww at sac.sfbay.sun.com, leland.chen at sun.com, nicolas.williams at sun.com,
>         psarc-ext at sun.com, timh at spidey.central.sun.com
> Content-transfer-encoding: 7BIT
> X-PMX-Version: 5.4.1.325704
> User-Agent: Thunderbird 2.0.0.21 (X11/20090323)
> 
> Gary Winiger wrote:
> >> 	IMO, this case should be withdrawn and the bug should be fixed.
> >> 	If I'm wrong about the bug, then the case should be reintroduced
> >> 	with rational as to why there isn't a bug and what the policy really
> >> 	should be for TIOCSTI.
> >>
> >> 	I'll give the project team a while to answer this before considering
> >> 	further steps, such as withdrawn, waiting need spec or even derail
> >> 	for a meeting.
> >>     
> >
> > 	Filed:
> > 	P3, 6838249 The TIOCSTI policy appears to require too many privileges
> >   
> If we consider TIOCSTI failure with EPERM on devices you own a bug, then 
> this case can probably be withdrawn.

	Hummm,  EPERM not EACCES.  Assuming I'm reading things correctly,
	from the code pre-privileges, you'd get EPERM if you weren't root
	and you didn't have the file open for read.  That's changed to
	if you don't have all privileges and you don't have the file open
	for read.  So perhaps there's a pconsole change needed.
	On the other hand, again assuming I'm reading things correctly,
	from the code pre-privileges, you'd get EACCES if you were not
	root and the stream/tty was not in the same controlling session as
	the thread issuing the TIOCSTI.  That's changed to, if you don't
	have all privileges and the issueing thread isn't in the same
	controlling session as the stream/tty.

	Is the intended use of pconsole to feed input to streams/ttys not in
	same controlling session as the thread issuing the TIOCSTI?

Gary..



More information about the opensolaris-arc mailing list