Displaying 1 result from an estimated 1 matches for "se_create_token_nam".
Did you mean:
se_create_token_name
2005 Feb 19
0
[PATCH]: uidswap.c: Drop uid 0 check on Cygwin
...== 0 and instead
call a function which checks the current account for being a privilieged
account? This could be very simple on most UNIX derivates like this:
int
privileged_user ()
{
return geteuid () == 0;
}
and much more complicated on systems needing that. On Cygwin we could
check for the SE_CREATE_TOKEN_NAME privilege in the current access token
on NT and just return 1 on 9x systems.
The advantage would be that we could remove lots of #ifdef stuff which
is just there because of these non-portable uid == 0 tests.
I would be willing to submit a patch for this, provided that it has a
chance for inclusi...