diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2011-04-04 13:00:02 +0400 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2011-04-04 13:00:02 +0400 |
commit | 99edadedc90025c03e4ec4602a9c61c1bf37b7e7 (patch) | |
tree | 1fd0a16c0b5195a7c9ec6557d8ca6678a1781838 /winsup/cygwin/security.h | |
parent | 0d6f2b0117aa7fe5470117b6a43f16dac139f5b9 (diff) |
* sec_auth.cc (get_user_groups): Mark well-known groups as well-known.
(get_user_local_groups): Ditto.
(verify_token): Drop useless label.
* sec_helper.cc (cygsid::get_sid): Check for well-known SID if
well_known isn't set.
* security.h (well_known_sid_type): New inline function.
Diffstat (limited to 'winsup/cygwin/security.h')
-rw-r--r-- | winsup/cygwin/security.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/winsup/cygwin/security.h b/winsup/cygwin/security.h index 198f0f075..6bc2a47dd 100644 --- a/winsup/cygwin/security.h +++ b/winsup/cygwin/security.h @@ -1,7 +1,7 @@ /* security.h: security declarations Copyright 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, - 2010 Red Hat, Inc. + 2010, 2011 Red Hat, Inc. This file is part of Cygwin. @@ -340,6 +340,12 @@ extern cygpsid well_known_samba_unix_user_fake_sid; bool privilege_luid (const PWCHAR pname, LUID *luid); inline BOOL +well_known_sid_type (SID_NAME_USE type) +{ + return type == SidTypeAlias || type == SidTypeWellKnownGroup; +} + +inline BOOL legal_sid_type (SID_NAME_USE type) { return type == SidTypeUser || type == SidTypeGroup |