From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 79107 invoked by alias); 23 Feb 2019 16:59:59 -0000 Mailing-List: contact cygwin-cvs-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: cygwin-cvs-owner@cygwin.com Received: (qmail 79092 invoked by uid 9078); 23 Feb 2019 16:59:59 -0000 Date: Sat, 23 Feb 2019 16:59:00 -0000 Message-ID: <20190223165959.79091.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: cygheap: better comment impersonation tokens X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 13b1f9c0d1c6860be91523289c8a6ac6a87cb9db X-Git-Newrev: 9db6048c0fe7c35586f762ee2cdc1d0f92a041ea X-SW-Source: 2019-q1/txt/msg00183.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=9db6048c0fe7c35586f762ee2cdc1d0f92a041ea commit 9db6048c0fe7c35586f762ee2cdc1d0f92a041ea Author: Corinna Vinschen Date: Sat Feb 23 17:28:12 2019 +0100 Cygwin: cygheap: better comment impersonation tokens Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/cygheap.h | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/cygheap.h b/winsup/cygwin/cygheap.h index be088b2..99d2e53 100644 --- a/winsup/cygwin/cygheap.h +++ b/winsup/cygwin/cygheap.h @@ -101,12 +101,11 @@ public: gid_t real_gid; /* Ditto */ user_groups groups; /* Primary and supp SIDs */ - /* token is needed if set(e)uid should be called. It can be set by a call - to `set_impersonation_token()'. */ - HANDLE external_token; - HANDLE internal_token; - HANDLE curr_primary_token; - HANDLE curr_imp_token; + HANDLE external_token; /* token from set_impersonation_token call */ + HANDLE internal_token; /* password-less token fetched in seteuid32 */ + HANDLE curr_primary_token; /* Just a copy of external or internal token */ + HANDLE curr_imp_token; /* impersonation token derived from primary + token */ bool ext_token_is_restricted; /* external_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 () */