[ale] C question

David Tomaschik david at systemoverlord.com
Sun Apr 7 19:48:42 EDT 2013


On Sun, Apr 7, 2013 at 4:01 PM, Geoffrey Myers
<lists at serioustechnology.com>wrote:

>
> On Apr 5, 2013, at 6:26 PM, David Tomaschik wrote:
>
> Having a shell in between shouldn't be a problem…
>
>
> It is.  Here is what currently happens.  C program that is setuid calls
> another C program via system().  The problem is, system spawns a new shell
> and the euid is not retained, hence when attempting to execute the 2nd C
> program, I get permission denied.
>

Is there a reason you couldn't just call setreuid() in the first program to
make the real uid be the effective uid?

-- 
David Tomaschik
OpenPGP: 0x5DEA789B
http://systemoverlord.com
david at systemoverlord.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.ale.org/pipermail/ale/attachments/20130407/7d3e3d11/attachment.html>


More information about the Ale mailing list