Re: The SUID bit (was Re: [PATCH] more SAK stuff)

From: Doug McNaught (doug@wireboard.com)
Date: Fri Jul 06 2001 - 10:17:28 EST


Rob Landley <landley@webofficenow.com> writes:

> Do you have a code example of how a program with euid root can change its
> actual uid (which several programs check when they should be checking euid,
> versions of dhcpcd before I complained about it case in point)?

Ummm... setuid(2)?

Works for me...

-Doug

-- 
The rain man gave me two cures; he said jump right in,
The first was Texas medicine--the second was just railroad gin,
And like a fool I mixed them, and it strangled up my mind,
Now people just get uglier, and I got no sense of time...          --Dylan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Jul 07 2001 - 21:00:18 EST