Nikolay Sivov : advapi32: Add WinCreatorOwnerRightsSid to wellknown list.

Alexandre Julliard julliard at winehq.org
Mon Oct 8 15:44:06 CDT 2018


Module: wine
Branch: master
Commit: 7c0cd8c7401230ef8a23c5df58c7db0e9c0cfbbf
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7c0cd8c7401230ef8a23c5df58c7db0e9c0cfbbf

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>

---

 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 c03baa7..12a446e 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 b9ef802..cb89213 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 c9248a4..b8a630e 100644
--- a/include/winnt.h
+++ b/include/winnt.h
@@ -4325,6 +4325,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