You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-09-12 18:50:20 -07:00
Rebase against 6e3dcf6c5877867b98b0d01b85206fba780c39c9.
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
From f4aabbf2f835d78815017e2ea2cbeb9a22dc9d88 Mon Sep 17 00:00:00 2001
|
||||
From ef6629a87b28873892be0eae5796309e93317853 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Fri, 3 Apr 2015 03:58:59 +0200
|
||||
Subject: [PATCH 1/2] advapi32/tests: Add tests for ACL inheritance in
|
||||
Subject: [PATCH] advapi32/tests: Add tests for ACL inheritance in
|
||||
CreateDirectoryA.
|
||||
|
||||
---
|
||||
@@ -9,10 +9,10 @@ Subject: [PATCH 1/2] advapi32/tests: Add tests for ACL inheritance in
|
||||
1 file changed, 70 insertions(+)
|
||||
|
||||
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
|
||||
index e2823fea63a..8188a358052 100644
|
||||
index 0917b144648..b6b0678d6f5 100644
|
||||
--- a/dlls/advapi32/tests/security.c
|
||||
+++ b/dlls/advapi32/tests/security.c
|
||||
@@ -3874,6 +3874,76 @@ static void test_CreateDirectoryA(void)
|
||||
@@ -3758,6 +3758,76 @@ static void test_CreateDirectoryA(void)
|
||||
}
|
||||
CloseHandle(hTemp);
|
||||
|
||||
@@ -22,7 +22,7 @@ index e2823fea63a..8188a358052 100644
|
||||
+ bret = CreateDirectoryA(tmpfile, NULL);
|
||||
+ ok(bret == TRUE, "CreateDirectoryA failed with error %lx\n", GetLastError());
|
||||
+
|
||||
+ error = pGetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ error = GetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
|
||||
+ (PSID *)&owner, NULL, &pDacl, NULL, &pSD);
|
||||
+ ok(error == ERROR_SUCCESS, "Failed to get permissions on file\n");
|
||||
@@ -52,7 +52,7 @@ index e2823fea63a..8188a358052 100644
|
||||
+ ok(bret == TRUE, "CreateDirectoryA failed with error %lx\n", GetLastError());
|
||||
+ HeapFree(GetProcessHeap(), 0, pDacl);
|
||||
+
|
||||
+ error = pGetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ error = GetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
|
||||
+ (PSID *)&owner, NULL, &pDacl, NULL, &pSD);
|
||||
+ ok(error == ERROR_SUCCESS, "GetNamedSecurityInfo failed with error %d\n", error);
|
||||
@@ -74,11 +74,11 @@ index e2823fea63a..8188a358052 100644
|
||||
+ pDacl = HeapAlloc(GetProcessHeap(), 0, 100);
|
||||
+ bret = InitializeAcl(pDacl, 100, ACL_REVISION);
|
||||
+ ok(bret, "Failed to initialize ACL.\n");
|
||||
+ bret = pAddAccessAllowedAceEx(pDacl, ACL_REVISION, 0, GENERIC_ALL, user_sid);
|
||||
+ bret = AddAccessAllowedAceEx(pDacl, ACL_REVISION, 0, GENERIC_ALL, user_sid);
|
||||
+ ok(bret, "Failed to add Current User to ACL.\n");
|
||||
+ bret = SetSecurityDescriptorDacl(pSD, TRUE, pDacl, FALSE);
|
||||
+ ok(bret, "Failed to add ACL to security desciptor.\n");
|
||||
+ error = pSetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL,
|
||||
+ error = SetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT, DACL_SECURITY_INFORMATION, NULL,
|
||||
+ NULL, pDacl, NULL);
|
||||
+ ok(error == ERROR_SUCCESS, "SetNamedSecurityInfoA failed with error %ld\n", error);
|
||||
+ HeapFree(GetProcessHeap(), 0, pDacl);
|
||||
@@ -90,5 +90,5 @@ index e2823fea63a..8188a358052 100644
|
||||
free(user);
|
||||
bret = RemoveDirectoryA(tmpdir);
|
||||
--
|
||||
2.43.0
|
||||
2.45.2
|
||||
|
||||
|
@@ -1,4 +1,4 @@
|
||||
From 303af824dcdd63c1afe27aa8690d4f3a5d962189 Mon Sep 17 00:00:00 2001
|
||||
From 5160a85f6e42c289334e25ffae56900a0ff45259 Mon Sep 17 00:00:00 2001
|
||||
From: Sebastian Lackner <sebastian@fds-team.de>
|
||||
Date: Fri, 3 Apr 2015 03:59:05 +0200
|
||||
Subject: [PATCH] advapi32/tests: Add ACL inheritance tests for creating
|
||||
@@ -9,10 +9,10 @@ Subject: [PATCH] advapi32/tests: Add ACL inheritance tests for creating
|
||||
1 file changed, 76 insertions(+)
|
||||
|
||||
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c
|
||||
index 1726236f424..641fb79e634 100644
|
||||
index b6b0678d6f5..5cf21bc79ba 100644
|
||||
--- a/dlls/advapi32/tests/security.c
|
||||
+++ b/dlls/advapi32/tests/security.c
|
||||
@@ -3936,6 +3936,82 @@ static void test_CreateDirectoryA(void)
|
||||
@@ -3828,6 +3828,82 @@ static void test_CreateDirectoryA(void)
|
||||
bret = RemoveDirectoryA(tmpfile);
|
||||
ok(bret == TRUE, "RemoveDirectoryA failed with error %lx\n", GetLastError());
|
||||
|
||||
@@ -28,12 +28,12 @@ index 1726236f424..641fb79e634 100644
|
||||
+ attr.SecurityDescriptor = NULL;
|
||||
+ attr.SecurityQualityOfService = NULL;
|
||||
+
|
||||
+ status = pNtCreateFile(&hTemp, GENERIC_READ | DELETE, &attr, &io, NULL, FILE_ATTRIBUTE_NORMAL,
|
||||
+ status = NtCreateFile(&hTemp, GENERIC_READ | DELETE, &attr, &io, NULL, FILE_ATTRIBUTE_NORMAL,
|
||||
+ FILE_SHARE_READ, FILE_CREATE, FILE_DIRECTORY_FILE | FILE_DELETE_ON_CLOSE, NULL, 0);
|
||||
+ ok(!status, "NtCreateFile failed with %08lx\n", status);
|
||||
+ RtlFreeUnicodeString(&tmpfileW);
|
||||
+
|
||||
+ error = pGetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ error = GetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
|
||||
+ (PSID *)&owner, NULL, &pDacl, NULL, &pSD);
|
||||
+ ok(error == ERROR_SUCCESS, "Failed to get permissions on file\n");
|
||||
@@ -63,7 +63,7 @@ index 1726236f424..641fb79e634 100644
|
||||
+ attr.SecurityDescriptor = pSD;
|
||||
+ attr.SecurityQualityOfService = NULL;
|
||||
+
|
||||
+ status = pNtCreateFile(&hTemp, GENERIC_READ | DELETE, &attr, &io, NULL, FILE_ATTRIBUTE_NORMAL,
|
||||
+ status = NtCreateFile(&hTemp, GENERIC_READ | DELETE, &attr, &io, NULL, FILE_ATTRIBUTE_NORMAL,
|
||||
+ FILE_SHARE_READ, FILE_CREATE, FILE_DIRECTORY_FILE | FILE_DELETE_ON_CLOSE, NULL, 0);
|
||||
+ ok(!status, "NtCreateFile failed with %08lx\n", status);
|
||||
+ RtlFreeUnicodeString(&tmpfileW);
|
||||
@@ -80,7 +80,7 @@ index 1726236f424..641fb79e634 100644
|
||||
+ acl_size.AceCount);
|
||||
+ LocalFree(pSD);
|
||||
+
|
||||
+ error = pGetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ error = GetNamedSecurityInfoA(tmpfile, SE_FILE_OBJECT,
|
||||
+ OWNER_SECURITY_INFORMATION | DACL_SECURITY_INFORMATION,
|
||||
+ (PSID *)&owner, NULL, &pDacl, NULL, &pSD);
|
||||
+ ok(error == ERROR_SUCCESS, "GetNamedSecurityInfo failed with error %ld\n", error);
|
||||
@@ -96,5 +96,5 @@ index 1726236f424..641fb79e634 100644
|
||||
free(user);
|
||||
bret = RemoveDirectoryA(tmpdir);
|
||||
--
|
||||
2.43.0
|
||||
2.45.2
|
||||
|
||||
|
Reference in New Issue
Block a user