Add initial security subsystem
Some checks failed
Builds / ExectOS (amd64, debug) (push) Failing after 25s
Builds / ExectOS (amd64, release) (push) Failing after 36s
Builds / ExectOS (i686, release) (push) Failing after 35s
Builds / ExectOS (i686, debug) (push) Failing after 27s

This commit is contained in:
2026-07-04 00:09:07 +02:00
parent 0ccf20f0c9
commit 66f74be947
7 changed files with 245 additions and 1 deletions

View File

@@ -0,0 +1,35 @@
/**
* PROJECT: ExectOS
* COPYRIGHT: See COPYING.md in the top level directory
* FILE: xtoskrnl/includes/se/descript.hh
* DESCRIPTION: Security Descriptors
* DEVELOPERS: Aiken Harris <harraiken91@gmail.com>
*/
#ifndef __XTOSKRNL_SE_DESCRIPT_HH
#define __XTOSKRNL_SE_DESCRIPT_HH
#include <xtos.hh>
/* Kernel Security */
namespace SE
{
class Descriptor
{
public:
STATIC XTAPI XTSTATUS CaptureSecurityDescriptor(IN PSECURITY_DESCRIPTOR InputDescriptor,
IN KPROCESSOR_MODE ProcessorMode,
IN MMPOOL_TYPE PoolType,
IN BOOLEAN ForceCapture,
OUT PSECURITY_DESCRIPTOR *OutputDescriptor);
STATIC XTFASTCALL ULONG ComputeSecurityQuota(IN ULONG Size);
STATIC XTAPI XTSTATUS ComputeQuotaInformationSize(IN PSECURITY_DESCRIPTOR SecurityDescriptor,
OUT PULONG QuotaSize);
STATIC XTAPI VOID ReleaseSecurityDescriptor(IN PSECURITY_DESCRIPTOR Descriptor,
IN KPROCESSOR_MODE ProcessorMode,
IN BOOLEAN ForceRelease);
};
}
#endif /* __XTOSKRNL_SE_DESCRIPT_HH */