Perhaps fork() and drop privileges in the child? (and have the child
run /bin/ps and somehow get the output back to the parent)

Does /bin/ps really complain and exit if the effective and real UID's
are not the same?

Karl Runge

On Thu, 28 Sep 2000, Bruce McCulley <[EMAIL PROTECTED]> wrote:
> I've got a problem with an app that has to run setuid and needs to chew
> up the output returned from a "ps" command.  Problem is that the output
> that is being returned is exactly "This /bin/ps is not secure for setuid
> operation" which doesn't exactly suffice to meet the app requirements.
> Right now I haven't come up with any easy and obvious solution,  can
> anyone suggest one?  One constraint is that the app is a complex
> multi-platform package that would be a bit of a bear to change, so the
> ideal solution would be something that can be easily be isolated and
> packaged external to the app itself.  Any ideas or suggestions will be
> gratefully appreciated!  THANKS!


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to