issetugid() for other procs
Kostik Belousov
kostikbel at gmail.com
Sun Oct 7 11:53:27 PDT 2007
On Sun, Oct 07, 2007 at 01:39:17PM -0500, Zane C.B. wrote:
> On Sun, 7 Oct 2007 21:04:02 +0300
> Kostik Belousov <kostikbel at gmail.com> wrote:
>
> > On Sun, Oct 07, 2007 at 12:28:05PM -0500, Zane C.B. wrote:
> > > On Sun, 07 Oct 2007 18:25:57 +0200
> > > Jan M?nther <jan.muenther at nruns.com> wrote:
> > >
> > > > man getuid, man geteuid.
> > >
> > > This does work for other procs, only the one that is calling it.
> > >
> > > Like I said initially I am looking to check if another proc has
> > > run setuid, seteuid, or been executed or forked by one that has.
> >
> > Note that what you trying to do is racy by definition.
>
> Why is that? It seems like something that be useful instead of
> something taboo. My interest in it is I am writing a database
> connector interested in making it paranoid as possible.
Because you do not control the execution of the other process. As
consequence, value you get is outdated even before you start using it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-security/attachments/20071007/f12ed39d/attachment.pgp
More information about the freebsd-security
mailing list