https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c93bf84747637c090ffce…
commit c93bf84747637c090ffced8506472d5505b4f69e
Author: George Bișoc <george.bisoc(a)reactos.org>
AuthorDate: Tue Apr 19 11:33:09 2022 +0200
Commit: George Bișoc <george.bisoc(a)reactos.org>
CommitDate: Fri May 6 10:09:52 2022 +0200
[NTOS:SE] Add SepGetSidFromAce prototype & Niscellaneous Stuff
---
ntoskrnl/include/internal/se.h | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/ntoskrnl/include/internal/se.h b/ntoskrnl/include/internal/se.h
index 90c318878a9..034203d9313 100644
--- a/ntoskrnl/include/internal/se.h
+++ b/ntoskrnl/include/internal/se.h
@@ -24,6 +24,19 @@ typedef struct _KNOWN_COMPOUND_ACE
ULONG SidStart;
} KNOWN_COMPOUND_ACE, *PKNOWN_COMPOUND_ACE;
+typedef struct _ACCESS_CHECK_RIGHTS
+{
+ ACCESS_MASK RemainingAccessRights;
+ ACCESS_MASK GrantedAccessRights;
+ ACCESS_MASK DeniedAccessRights;
+} ACCESS_CHECK_RIGHTS, *PACCESS_CHECK_RIGHTS;
+
+typedef enum _ACCESS_CHECK_RIGHT_TYPE
+{
+ AccessCheckMaximum,
+ AccessCheckRegular
+} ACCESS_CHECK_RIGHT_TYPE;
+
typedef struct _TOKEN_AUDIT_POLICY_INFORMATION
{
ULONG PolicyCount;
@@ -501,6 +514,12 @@ SepReleaseSid(
_In_ KPROCESSOR_MODE AccessMode,
_In_ BOOLEAN CaptureIfKernel);
+PSID
+NTAPI
+SepGetSidFromAce(
+ _In_ UCHAR AceType,
+ _In_ PACE Ace);
+
NTSTATUS
NTAPI
SeCaptureSidAndAttributesArray(