This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Does seteuid() and setreuid() work with _POSIX_SAVED_IDS?
- To: gcc at gcc dot gnu dot org
- Subject: Does seteuid() and setreuid() work with _POSIX_SAVED_IDS?
- From: hari sekar <a_ghsek at yahoo dot co dot in>
- Date: Thu, 11 Oct 2001 08:36:57 +0100 (BST)
Hi,
I work on an i386 LynxOS system that uses gcc
(v2.7). The macro _POSIX_SAVED_IDS has been defined in
LynxOS. I would then like to know, if the functions
seteuid() and setreuid() work with saved ids?
This is because, my application runs with seteuid to
root. Temporarily drops the privileges and then
restores it. In LynxOS, restoring of root privileges
prints an error:
seteuid 0: Not owner
Whereas this works fine on Linux (Redhat 7.0)
system.
Does it mean that the seteuid() or setreuid() function
implementations in LynxOS not support saved ids,
though I expect it because _POSIX_SAVED_IDS has been
defined.
setreuid() function is found in /lib/libc.a in LynxOS.
I suppose it is glibc. But seteuid() is not found in
libc.a and no function prototypes provided for
seteuid(). But the function seteuid() is resolved at
run-time.
Any help would be greatly appreciated.
-Hari.
____________________________________________________________
Do You Yahoo!?
Send a newsletter, share photos & files, conduct polls, organize chat events. Visit http://in.groups.yahoo.com