Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2002-05-08 18:21:08 +0400
committerCorinna Vinschen <corinna@vinschen.de>2002-05-08 18:21:08 +0400
commit6327de5fef1da1866695426cb7d73d47e157b971 (patch)
treef87fd62d20a18f98567dbea0510a2491716cc11d /winsup/cygwin/cygheap.h
parent84d06cb64d051a07fb3a41fcbc5f3239cb6cc532 (diff)
* cygheap.h (class cygheap_user): Add member `orig_psid'.
Add method `orig_sid()'. * cygheap.cc (cygheap_user::set_sid): Maintain orig_psid.
Diffstat (limited to 'winsup/cygwin/cygheap.h')
-rw-r--r--winsup/cygwin/cygheap.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h
index 154fd24bf..f7c507e46 100644
--- a/winsup/cygwin/cygheap.h
+++ b/winsup/cygwin/cygheap.h
@@ -94,6 +94,7 @@ class cygheap_user
char *plogsrv; /* Logon server, may be FQDN */
char *pdomain; /* Logon domain of the user */
PSID psid; /* buffer for user's SID */
+ PSID orig_psid; /* Remains intact even after impersonation */
public:
__uid16_t orig_uid; /* Remains intact even after impersonation */
__uid16_t orig_gid; /* Ditto */
@@ -120,6 +121,7 @@ public:
BOOL set_sid (PSID new_sid);
PSID sid () const { return psid; }
+ PSID orig_sid () const { return orig_psid; }
void operator =(cygheap_user &user)
{