Cygwin: cygheap: better comment impersonation tokens

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen 2019-02-23 17:28:12 +01:00
parent 13b1f9c0d1
commit 9db6048c0f
1 changed files with 5 additions and 6 deletions

View File

@ -101,12 +101,11 @@ public:
gid_t real_gid; /* Ditto */ gid_t real_gid; /* Ditto */
user_groups groups; /* Primary and supp SIDs */ user_groups groups; /* Primary and supp SIDs */
/* token is needed if set(e)uid should be called. It can be set by a call HANDLE external_token; /* token from set_impersonation_token call */
to `set_impersonation_token()'. */ HANDLE internal_token; /* password-less token fetched in seteuid32 */
HANDLE external_token; HANDLE curr_primary_token; /* Just a copy of external or internal token */
HANDLE internal_token; HANDLE curr_imp_token; /* impersonation token derived from primary
HANDLE curr_primary_token; token */
HANDLE curr_imp_token;
bool ext_token_is_restricted; /* external_token is restricted token */ bool ext_token_is_restricted; /* external_token is restricted token */
bool curr_token_is_restricted; /* curr_primary_token is restricted token */ bool curr_token_is_restricted; /* curr_primary_token is restricted token */
bool setuid_to_restricted; /* switch to restricted token by setuid () */ bool setuid_to_restricted; /* switch to restricted token by setuid () */