public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* Does seteuid() and setreuid() work with _POSIX_SAVED_IDS?
@ 2001-10-11  0:37 hari sekar
  2001-10-11  1:09 ` Florian Weimer
  0 siblings, 1 reply; 2+ messages in thread
From: hari sekar @ 2001-10-11  0:37 UTC (permalink / raw)
  To: gcc

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Does seteuid() and setreuid() work with _POSIX_SAVED_IDS?
  2001-10-11  0:37 Does seteuid() and setreuid() work with _POSIX_SAVED_IDS? hari sekar
@ 2001-10-11  1:09 ` Florian Weimer
  0 siblings, 0 replies; 2+ messages in thread
From: Florian Weimer @ 2001-10-11  1:09 UTC (permalink / raw)
  To: hari sekar; +Cc: gcc

hari sekar <a_ghsek@yahoo.co.in> writes:

> I would then like to know, if the functions seteuid() and setreuid()
> work with saved ids?

I'm sorry, but this is not a GCC compiler issue.  You should consult
your manuals and/or ask in a more appropriate forum (comp.os.lynx, I
guess).

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-10-11  1:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-11  0:37 Does seteuid() and setreuid() work with _POSIX_SAVED_IDS? hari sekar
2001-10-11  1:09 ` Florian Weimer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).