system(3) behaviour under Esix rev. D
Glenn Geers
glenn at suphys.physics.su.OZ.AU
Mon Feb 18 08:42:52 AEST 1991
Hi,
I've got a program that is setuid root that runs a system command
via the system(3) library routine. The problem is that I need the effective
uid of the calling program to be inherited by the process run by system(3).
Esix does not seem to do this. If I use my own fork/exec sequence I have no
problems. The question is: Should system(3) really set the uid of the process
it runs to the effective uid of the invoking program or to its real uid?
I have RTFM'd and the former case seems correct but the latter is occuring.
Any thoughts appreciated.
Thanks,
Glenn
glenn at qed.physics.su.oz.au
--
Glenn Geers | "So when it's over, we're back to people.
Department of Theoretical Physics | Just to prove that human touch can have
The University of Sydney | no equal."
Sydney NSW 2006 Australia | - Basia Trzetrzelewska, 'Prime Time TV'
More information about the Comp.unix.sysv386
mailing list