Add stubs for handle duplication auditing and token-based audit checks
All checks were successful
Builds / ExectOS (amd64, debug) (push) Successful in 37s
Builds / ExectOS (i686, debug) (push) Successful in 35s
Builds / ExectOS (i686, release) (push) Successful in 47s
Builds / ExectOS (amd64, release) (push) Successful in 50s

This commit is contained in:
2026-08-18 10:22:47 +02:00
parent ea967b8084
commit b6ab1b959b
2 changed files with 54 additions and 0 deletions

View File

@@ -18,6 +18,11 @@ namespace SE
class Audit
{
public:
STATIC XTAPI VOID AuditHandleDuplication(PVOID SourceHandle,
PVOID TargetHandle,
PEPROCESS SourceProcess,
PEPROCESS TargetProcess);
STATIC XTFASTCALL BOOLEAN AuditWithToken(IN PACCESS_TOKEN AccessToken);
STATIC XTAPI VOID OperationAuditAlarm(IN PUNICODE_STRING SubsystemName,
IN PVOID HandleId,
IN PUNICODE_STRING ObjectTypeName,

View File

@@ -9,6 +9,55 @@
#include <xtos.hh>
/**
* Generates a security audit event for an object handle duplication.
*
* @param SourceHandle
* Supplies the original handle identifier as it exists in the source process.
*
* @param TargetHandle
* Supplies the newly created handle identifier as it exists in the target process.
*
* @param SourceProcess
* Supplies a pointer to the executive process originating the duplication.
*
* @param TargetProcess
* Supplies a pointer to the executive process receiving the duplicated handle.
*
* @return This routine does not return any value.
*
* @since XT 1.0
*/
XTAPI
VOID
SE::Audit::AuditHandleDuplication(PVOID SourceHandle,
PVOID TargetHandle,
PEPROCESS SourceProcess,
PEPROCESS TargetProcess)
{
UNIMPLEMENTED;
}
/**
* Determines whether detailed security auditing is enabled for a specific token.
*
* @param AccessToken
* Supplies an optional pointer to the access token to be evaluated.
*
* @return This routine returns TRUE if auditing is required, or FALSE otherwise.
*
* @since XT 1.0
*/
XTFASTCALL
BOOLEAN
SE::Audit::AuditWithToken(IN PACCESS_TOKEN AccessToken)
{
UNIMPLEMENTED;
/* Bypass audit generation */
return FALSE;
}
/**
* Generates a security audit alarm for an object access operation.
*