bug in open() under SunOS 4.1.x

Arthur Hyun ash at jec312.its.rpi.edu
Fri Apr 5 18:29:48 AEST 1991


We've found (we think) a bug in open().

(from man termio)

     If  a process that is a session leader, and that does
     not have a controlling terminal, opens a terminal  file  not
     already  associated  with a session, the terminal associated
     with that terminal file becomes the controlling terminal for
     that process, and the terminal's distinguished process group
     is set to the process group of  that  process.   (Currently,
     this also happens if a process that does not have a control-
     ling terminal and is not a member of a process group opens a
     terminal.   In  this case, if the terminal is not associated
     with a session, a new session  is  created  with  a  process
     group ID equal to the process ID of the process in question,
     and the terminal is assigned to that session.   The  process
     is made a member of the terminal's process group.)

The problem is that all this just doesn't happen under SunOS 4.1.x.
Presumably this is a bug, since it conflicts with the man page info.
Also, I hear it still works correctly in 4.0.3.

Particularly to users of 'screen', this bug presents a possible
security hole.  Be advised.
                                                  cheers,
                                                  arthur
-- 
                 ash at rpi.edu                    76 College Avenue, Apartment 1
         sammael at acm.rpi.edu    Arthur Hyun     Troy, New York  12180-3525
    userglf8 at rpitsmts.BITNET                    518-273-5295
         "Art does not need praise; art is its own praise." (anon)



More information about the Comp.unix.internals mailing list