Implement object security descriptor management stubs
Some checks failed
Builds / ExectOS (i686, debug) (push) Failing after 29s
Builds / ExectOS (amd64, debug) (push) Failing after 30s
Builds / ExectOS (i686, release) (push) Failing after 36s
Builds / ExectOS (amd64, release) (push) Failing after 39s

This commit is contained in:
2026-08-18 11:05:18 +02:00
parent b6ab1b959b
commit ca76ed314b
2 changed files with 185 additions and 0 deletions

View File

@@ -18,10 +18,17 @@ namespace OB
class Security
{
public:
STATIC XTAPI XTSTATUS AssignObjectSecurityDescriptor(IN PVOID Object,
IN PSECURITY_DESCRIPTOR SecurityDescriptor,
IN MMPOOL_TYPE PoolType);
STATIC XTAPI BOOLEAN AuditInheritedHandle(IN PHANDLE_TABLE_ENTRY ObjectTableEntry,
IN HANDLE HandleId,
IN PVOID Context);
STATIC XTAPI VOID AuditObjectAccess(IN HANDLE Handle,
IN PHANDLE_TABLE_ENTRY_INFO ObjectTableEntryInfo,
IN PUNICODE_STRING ObjectTypeName,
IN ACCESS_MASK DesiredAccess);
STATIC XTAPI XTSTATUS DeassignSecurity(IN OUT PSECURITY_DESCRIPTOR *SecurityDescriptor);
STATIC XTAPI XTSTATUS ProcessObjectSecurityDescriptor(IN PVOID Object,
IN SECURITY_OPERATION_CODE OperationCode,
IN PSECURITY_INFORMATION SecurityInformation,
@@ -30,6 +37,17 @@ namespace OB
IN OUT PSECURITY_DESCRIPTOR *OldSecurityDescriptor,
IN MMPOOL_TYPE PoolType,
IN PGENERIC_MAPPING GenericMapping);
STATIC XTAPI XTSTATUS QuerySecurityDescriptorInfo(IN PVOID Object,
IN PSECURITY_INFORMATION SecurityInformation,
OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
IN OUT PULONG Length,
IN PSECURITY_DESCRIPTOR *OldSecurityDescriptor);
STATIC XTAPI XTSTATUS SetSecurityDescriptorInfo(IN PVOID Object,
IN PSECURITY_INFORMATION SecurityInformation,
IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor,
IN OUT PSECURITY_DESCRIPTOR *OldSecurityDescriptor,
IN MMPOOL_TYPE PoolType,
IN PGENERIC_MAPPING GenericMapping);
};
}