>Sumanth Naropanth wrote:
>[CC:'ing shell-discuss at opensolaris.org (please make sure to keep this
>list in the CC:)]
>> Jeffrey Hutzelman wrote on 10/31/08 14:29:
>[snip] 
>> Because it's not implemented in the system(3C) function itself.
>> 
>> It doesn't happen as a rule, but happens in most use cases of system(3C)
>> inside setuid programs because Bourne shell resets the uid to the real
>> uid of the process when the effective uid is less than 100.
>
>Is this a standard behaviour (e.g. defined by the POSIX standard) or a
>plain Bourne shell feature ?

"It came from New Jersey".

It's not from POSIX.  When you build in, e.g.,  the XPG4 environment, you
get ksh and it doesn't reset the uid.

Casper


Reply via email to