in reply to Re: Not understanding the code to drop privileges in perlsec
in thread Not understanding the code to drop privileges in perlsec
It certainly looks redundant, I suppose (or hope) it's in order to make it work on all platforms.
Probably not. It surely should work on anything that looks like Unix / POSIX, surely on Linux and the *BSDs, probably also Mac OS X. On DOS, you permanently have full privileges, no way to drop privileges. The Win32 API works very differently (I think privileges are somehow tied to some kind of token). I have no idea how OS/2, Amiga, Risc OS, VMS, VOS, z/OS and the other platforms from perlport handle users and privileges.
Alexander
|
|---|