FROM : Sherm Pendley
DATE : Wed Jul 19 19:41:49 2006
On Jul 18, 2006, at 9:35 PM, Brad Peterson wrote:
> I've confirmed that the sub-task isn't running as root
> (though I don't know why that would make a difference)
> by logging the results of a getgid() call. (501 was
> the result.)
Getgid() gets the group id. And, it gets the *real* group id, not the
effective group id, which is what running with elevated group
privileges would change.
Getuid() and geteuid() report the real and effective user id, and you
can use setuid() to lower the privileges of a running app, if you
need to.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net
DATE : Wed Jul 19 19:41:49 2006
On Jul 18, 2006, at 9:35 PM, Brad Peterson wrote:
> I've confirmed that the sub-task isn't running as root
> (though I don't know why that would make a difference)
> by logging the results of a getgid() call. (501 was
> the result.)
Getgid() gets the group id. And, it gets the *real* group id, not the
effective group id, which is what running with elevated group
privileges would change.
Getuid() and geteuid() report the real and effective user id, and you
can use setuid() to lower the privileges of a running app, if you
need to.
sherm--
Web Hosting by West Virginians, for West Virginians: http://wv-www.net
Cocoa programming in Perl: http://camelbones.sourceforge.net






Cocoa mail archive

