diff options
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r-- | winsup/cygwin/cygheap.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index 779df67d3..c39438ab1 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -57,17 +57,21 @@ class cygheap_user { /* Extendend user information. The information is derived from the internal_getlogin call when on a NT system. */ - char *pname; /* user's name */ - char *plogsrv; /* Logon server, may be FQDN */ - char *pdomain; /* Logon domain of the user */ - PSID psid; /* buffer for user's SID */ - + char *pname; /* user's name */ + char *plogsrv; /* Logon server, may be FQDN */ + char *pdomain; /* Logon domain of the user */ + PSID psid; /* buffer for user's SID */ public: uid_t orig_uid; /* Remains intact even after impersonation */ uid_t orig_gid; /* Ditto */ uid_t real_uid; /* Remains intact on seteuid, replaced by setuid */ gid_t real_gid; /* Ditto */ + /* token is needed if set(e)uid should be called. It can be set by a call + to `set_impersonation_token()'. */ + HANDLE token; + BOOL impersonated; + cygheap_user () : pname (NULL), plogsrv (NULL), pdomain (NULL), psid (NULL) {} ~cygheap_user (); |