General Unix/C question

Dr. T. Andrews tanner at cdis-1.uucp
Sat Sep 10 00:32:54 AEST 1988


In article <794 at philmds.UUCP>, leo at philmds.UUCP (Leo de Wit) writes:
) ...when you start the program the input/output redirection is
) done, perhaps by your shell. This means that these input/output
) streams must be readable/writable by the current uid/gid; when you
) setuid & > setgid the process may not be allowed...

Nope.  Not the case at all.  Once the file is open, the file
descriptor remains open, and usable, until such time is it is
closed (explicitly, via close(2), or implicitly via exit(2) or
exec(2) after ioctl(,,FIOCLEX)).
-- 
...!bikini.cis.ufl.edu!ki4pv!cdis-1!tanner  ...!bpa!cdin-1!cdis-1!tanner
or...  {allegra killer gatech!uflorida decvax!ucf-cs}!ki4pv!cdis-1!tanner



More information about the Comp.unix.questions mailing list