[issue6758] implement new setuid-related calls and a standard way to drop all privileges
Travis H.
report at bugs.python.org
Fri Aug 21 21:42:08 CEST 2009
Travis H. <travis+w-python.org at subspacefield.org> added the comment:
The routines necessary for implementing Wagner's API for dropping
privileges are:
sysconf function: available in os module
_SC_NGROUPS_MAX constant: unsure
abort function: available in os module
getresuid function: needs implementing[1]
getresgid function: needs implementing[1]
[1] Not POSIX but available on Linux, HP/UX, FreeBSD, OpenBSD,
DragonFlyBSD. Not available on Solaris, AIX, NetBSD, OSX, cygwin.
Since Wagner points out that the non-standard function calls actually
have clearer/better semantics, perhaps the way to do all this is in its
own module, instead of trying to shove it into an existing module..
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue6758>
_______________________________________
More information about the Python-bugs-list
mailing list