Nikolay Sivov : advapi32: Add WinCreatorOwnerRightsSid to wellknown list.
Alexandre Julliard
julliard at winehq.org
Sun Mar 3 13:21:27 CST 2019
Module: wine
Branch: oldstable
Commit: 233a4a47880043ea0595dc93ad2223fc9ef83204
URL: https://source.winehq.org/git/wine.git/?a=commit;h=233a4a47880043ea0595dc93ad2223fc9ef83204
Author: Nikolay Sivov <nsivov at codeweavers.com>
Date: Mon Oct 8 08:06:28 2018 +0300
advapi32: Add WinCreatorOwnerRightsSid to wellknown list.
Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 7c0cd8c7401230ef8a23c5df58c7db0e9c0cfbbf)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
dlls/advapi32/security.c | 1 +
dlls/advapi32/tests/security.c | 1 +
include/winnt.h | 1 +
3 files changed, 3 insertions(+)
diff --git a/dlls/advapi32/security.c b/dlls/advapi32/security.c
index 31ef4b2..bcdb2e4 100644
--- a/dlls/advapi32/security.c
+++ b/dlls/advapi32/security.c
@@ -79,6 +79,7 @@ static const WELLKNOWNSID WellKnownSids[] =
{ {0,0}, WinLocalSid, { SID_REVISION, 1, { SECURITY_LOCAL_SID_AUTHORITY }, { SECURITY_LOCAL_RID } } },
{ {'C','O'}, WinCreatorOwnerSid, { SID_REVISION, 1, { SECURITY_CREATOR_SID_AUTHORITY }, { SECURITY_CREATOR_OWNER_RID } } },
{ {'C','G'}, WinCreatorGroupSid, { SID_REVISION, 1, { SECURITY_CREATOR_SID_AUTHORITY }, { SECURITY_CREATOR_GROUP_RID } } },
+ { {'O','W'}, WinCreatorOwnerRightsSid, { SID_REVISION, 1, { SECURITY_CREATOR_SID_AUTHORITY }, { SECURITY_CREATOR_OWNER_RIGHTS_RID } } },
{ {0,0}, WinCreatorOwnerServerSid, { SID_REVISION, 1, { SECURITY_CREATOR_SID_AUTHORITY }, { SECURITY_CREATOR_OWNER_SERVER_RID } } },
{ {0,0}, WinCreatorGroupServerSid, { SID_REVISION, 1, { SECURITY_CREATOR_SID_AUTHORITY }, { SECURITY_CREATOR_GROUP_SERVER_RID } } },
{ {0,0}, WinNtAuthoritySid, { SID_REVISION, 0, { SECURITY_NT_AUTHORITY }, { SECURITY_NULL_RID } } },
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
index 2ee7b4e..a66b844 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -310,6 +310,7 @@ static void test_sid(void)
{ "WD", "S-1-1-0" },
{ "CO", "S-1-3-0" },
{ "CG", "S-1-3-1" },
+ { "OW", "S-1-3-4", 1 },
{ "NU", "S-1-5-2" },
{ "IU", "S-1-5-4" },
{ "SU", "S-1-5-6" },
diff --git a/include/winnt.h b/include/winnt.h
index 1fb09b3..3eac94d 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -4205,6 +4205,7 @@ typedef struct _SID_AND_ATTRIBUTES {
#define SECURITY_CREATOR_GROUP_RID __MSABI_LONG(0x00000001)
#define SECURITY_CREATOR_OWNER_SERVER_RID __MSABI_LONG(0x00000002)
#define SECURITY_CREATOR_GROUP_SERVER_RID __MSABI_LONG(0x00000003)
+#define SECURITY_CREATOR_OWNER_RIGHTS_RID __MSABI_LONG(0x00000004)
/* S-1-4 */
#define SECURITY_NON_UNIQUE_AUTHORITY {0,0,0,0,0,4}
More information about the wine-cvs
mailing list