#include "tokenp.h"
Go to the source code of this file.
Classes | |
struct | _SEP_AUDIT_BOUNDS |
struct | _SEP_AUDIT_OPTIONS |
Defines | |
#define | FULL_PRIVILEGE_AUDITING L"FullPrivilegeAuditing" |
#define | SepAdtAuditThisEvent(AuditType, AccessGranted) |
#define | SepAdtAuditThisEventEx(AuditType, AccessGranted, AccessDenied) |
Typedefs | |
typedef _SEP_AUDIT_BOUNDS | SEP_AUDIT_BOUNDS |
typedef _SEP_AUDIT_BOUNDS * | PSEP_AUDIT_BOUNDS |
typedef _SEP_AUDIT_OPTIONS | SEP_AUDIT_OPTIONS |
Functions | |
VOID | SepAdtSetAuditEventInformation (IN OPTIONAL PBOOLEAN AuditingMode, IN OPTIONAL PPOLICY_AUDIT_EVENT_OPTIONS EventAuditingOptions) |
VOID | SepAdtGetAuditEventInformation (OUT OPTIONAL PBOOLEAN AuditingMode, OUT OPTIONAL PPOLICY_AUDIT_EVENT_OPTIONS EventAuditingOptions) |
VOID | SepAdtSetAuditLogInformation (IN PPOLICY_AUDIT_LOG_INFO AuditLogInformation) |
NTSTATUS | SepAdtMarshallAuditRecord (IN PSE_ADT_PARAMETER_ARRAY AuditParameters, OUT PSE_ADT_PARAMETER_ARRAY *MarshalledAuditParameters, OUT PSEP_RM_LSA_MEMORY_TYPE RecordMemoryType) |
BOOLEAN | SepAdtPrivilegeObjectAuditAlarm (IN PUNICODE_STRING CapturedSubsystemName OPTIONAL, IN PVOID HandleId, IN PTOKEN ClientToken OPTIONAL, IN PTOKEN PrimaryToken, IN PVOID ProcessId, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET CapturedPrivileges, IN BOOLEAN AccessGranted) |
VOID | SepAdtTraverseAuditAlarm (IN PLUID OperationID, IN PVOID DirectoryObject, IN PSID UserSid, IN LUID AuthenticationId, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET Privileges OPTIONAL, IN BOOLEAN AccessGranted, IN BOOLEAN GenerateAudit, IN BOOLEAN GenerateAlarm) |
VOID | SepAdtCreateInstanceAuditAlarm (IN PLUID OperationID, IN PVOID Object, IN PSID UserSid, IN LUID AuthenticationId, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET Privileges OPTIONAL, IN BOOLEAN AccessGranted, IN BOOLEAN GenerateAudit, IN BOOLEAN GenerateAlarm) |
VOID | SepAdtCreateObjectAuditAlarm (IN PLUID OperationID, IN PUNICODE_STRING DirectoryName, IN PUNICODE_STRING ComponentName, IN PSID UserSid, IN LUID AuthenticationId, IN ACCESS_MASK DesiredAccess, IN BOOLEAN AccessGranted, IN BOOLEAN GenerateAudit, IN BOOLEAN GenerateAlarm) |
VOID | SepAdtHandleAuditAlarm (IN PUNICODE_STRING Source, IN LUID OperationId, IN HANDLE Handle, IN PSID UserSid) |
*++ | |
VOID | SepAdtPrivilegedServiceAuditAlarm (IN PUNICODE_STRING CapturedSubsystemName, IN PUNICODE_STRING CapturedServiceName, IN PTOKEN ClientToken OPTIONAL, IN PTOKEN PrimaryToken, IN PPRIVILEGE_SET CapturedPrivileges, IN BOOLEAN AccessGranted) |
VOID | SepAdtCloseObjectAuditAlarm (IN PUNICODE_STRING CapturedSubsystemName, IN PVOID HandleId, IN PVOID Object, IN PSID UserSid, IN LUID AuthenticationId) |
VOID | SepAdtDeleteObjectAuditAlarm (IN PUNICODE_STRING CapturedSubsystemName, IN PVOID HandleId, IN PVOID Object, IN PSID UserSid, IN LUID AuthenticationId) |
BOOLEAN | SepAdtOpenObjectAuditAlarm (IN PUNICODE_STRING CapturedSubsystemName, IN PVOID *HandleId OPTIONAL, IN PUNICODE_STRING CapturedObjectTypeName, IN PVOID Object OPTIONAL, IN PUNICODE_STRING CapturedObjectName OPTIONAL, IN PTOKEN ClientToken OPTIONAL, IN PTOKEN PrimaryToken, IN ACCESS_MASK DesiredAccess, IN ACCESS_MASK GrantedAccess, IN PLUID OperationId, IN PPRIVILEGE_SET CapturedPrivileges OPTIONAL, IN BOOLEAN ObjectCreated, IN BOOLEAN AccessGranted, IN BOOLEAN GenerateAudit, IN BOOLEAN GenerateAlarm, IN HANDLE ProcessID, IN POLICY_AUDIT_EVENT_TYPE AuditType, IN PIOBJECT_TYPE_LIST ObjectTypeList OPTIONAL, IN ULONG ObjectTypeListLength, IN PACCESS_MASK GrantedAccessArray OPTIONAL) |
BOOLEAN | SepAdtOpenObjectForDeleteAuditAlarm (IN PUNICODE_STRING CapturedSubsystemName, IN PVOID *HandleId, IN PUNICODE_STRING CapturedObjectTypeName, IN PVOID Object, IN PUNICODE_STRING CapturedObjectName, IN PTOKEN ClientToken OPTIONAL, IN PTOKEN PrimaryToken, IN ACCESS_MASK DesiredAccess, IN ACCESS_MASK GrantedAccess, IN PLUID OperationId, IN PPRIVILEGE_SET CapturedPrivileges OPTIONAL, IN BOOLEAN ObjectCreated, IN BOOLEAN AccessGranted, IN BOOLEAN GenerateAudit, IN BOOLEAN GenerateAlarm, IN HANDLE ProcessID) |
VOID | SepAdtObjectReferenceAuditAlarm (IN PLUID OperationID OPTIONAL, IN PVOID Object, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET Privileges OPTIONAL, IN BOOLEAN AccessGranted, IN BOOLEAN GenerateAudit, IN BOOLEAN GenerateAlarm) |
VOID | SepAdtInitializeBounds (VOID) |
VOID | SepAuditFailed (VOID) |
NTSTATUS | SepAdtInitializeCrashOnFail (VOID) |
BOOLEAN | SepInitializePrivilegeFilter (BOOLEAN Verbose) |
BOOLEAN | SepAdtInitializePrivilegeAuditing (VOID) |
VOID | SepAdtInitializeAuditingOptions (VOID) |
Variables | |
POLICY_AUDIT_LOG_INFO | SepAdtLogInformation |
BOOLEAN | SepAdtAuditingEnabled |
ULONG | SepAdtMaxListLength |
ULONG | SepAdtMinListLength |
ULONG | SepAdtCountEventsDiscarded |
ULONG | SepAdtCurrentListLength |
BOOLEAN | SepAdtDiscardingAudits |
BOOLEAN | SepCrashOnAuditFail |
SEP_AUDIT_OPTIONS | SepAuditOptions |
|
Definition at line 83 of file adtp.h. Referenced by SepAdtInitializePrivilegeAuditing(). |
|
Value:
Definition at line 264 of file adtp.h. Referenced by NtOpenObjectAuditAlarm(), SeAuditingFileEvents(), SeAuditingFileOrGlobalEvents(), SeCreateObjectAuditAlarm(), SeObjectReferenceAuditAlarm(), SeOpenObjectAuditAlarm(), SeOpenObjectForDeleteAuditAlarm(), SepAccessCheckAndAuditAlarm(), SepAdtCloseObjectAuditAlarm(), SepAdtDeleteObjectAuditAlarm(), SepAdtHandleAuditAlarm(), SepAdtPrivilegedServiceAuditAlarm(), SepAdtPrivilegeObjectAuditAlarm(), and SePrivilegedServiceAuditAlarm(). |
|
Value:
Definition at line 269 of file adtp.h. Referenced by SepAccessCheckAndAuditAlarm(). |
|
Referenced by SepAdtInitializeBounds(). |
|
Referenced by SepAdtInitializeBounds(). |
|
|
|
Definition at line 1312 of file sepaudit.c. References ASSERT, _SEP_AUDIT_OPTIONS::DoNotAuditCloseObjectEvents, PAGED_CODE, PsGetCurrentProcess, PsProcessAuditId, SepAdtAuditThisEvent, SepAdtLogAuditRecord(), SepAuditOptions, SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, and TRUE. Referenced by NtCloseObjectAuditAlarm(), and SeCloseObjectAuditAlarm().
|
|
|
|
Referenced by SeCreateObjectAuditAlarm(). |
|
Definition at line 1465 of file sepaudit.c. References ASSERT, PAGED_CODE, PsGetCurrentProcess, PsProcessAuditId, SepAdtAuditThisEvent, SepAdtLogAuditRecord(), SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, and TRUE. Referenced by NtDeleteObjectAuditAlarm(), and SeDeleteObjectAuditAlarm().
|
|
|
|
*++
Definition at line 1794 of file sepaudit.c. References ASSERT, Handle, PAGED_CODE, PsGetCurrentProcess, PsProcessAuditId, SepAdtAuditThisEvent, SepAdtLogAuditRecord(), SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, and TRUE.
|
|
Definition at line 425 of file adtinit.c. References ASSERT, CHAR, _SEP_AUDIT_OPTIONS::DoNotAuditCloseObjectEvents, KeyName, L, NT_SUCCESS, NtClose(), NtOpenKey(), NtQueryValueKey(), NTSTATUS(), NULL, PAGED_CODE, RtlInitUnicodeString(), SepAuditOptions, Status, TRUE, and ValueName. Referenced by SeRmInitPhase1().
|
|
Definition at line 117 of file adtinit.c. References ExAllocatePool, ExFreePool(), KeyName, L, _SEP_AUDIT_BOUNDS::LowerBound, NT_SUCCESS, NtClose(), NtOpenKey(), NtQueryValueKey(), NTSTATUS(), NULL, ObjectAttributes, PAGED_CODE, PagedPool, PSEP_AUDIT_BOUNDS, RtlInitUnicodeString(), SEP_AUDIT_BOUNDS, SepAdtMaxListLength, SepAdtMinListLength, SepAdtValidateAuditBounds(), Status, _SEP_AUDIT_BOUNDS::UpperBound, and ValueName. Referenced by SepRmSetAuditEventWrkr().
|
|
Definition at line 242 of file adtinit.c.
|
|
Definition at line 329 of file adtinit.c.
|
|
Definition at line 264 of file adtlog.c. References ASSERT, ExAllocatePoolWithTag, FALSE, NULL, PAGED_CODE, PagedPool, and SourceString. Referenced by SepAdtLogAuditRecord().
|
|
|
|
Definition at line 571 of file sepaudit.c. References ASSERT, ClientToken, ExAllocatePoolWithTag, ExFreePool(), FlagMask, NULL, OBJECT_FAILURE_AUDIT, OBJECT_SUCCESS_AUDIT, PAGED_CODE, PagedPool, PrimaryToken, SepAdtLogAuditRecord(), SepSetParmTypeAccessMask, SepSetParmTypeFileSpec, SepSetParmTypeLogonId, SepSetParmTypeNoLogon, SepSetParmTypeObjectTypes, SepSetParmTypePrivileges, SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, SepTokenAuthenticationId, SepTokenUserSid, TRUE, and USHORT. Referenced by NtOpenObjectAuditAlarm(), SeAuditHandleCreation(), SeOpenObjectAuditAlarm(), SeOpenObjectForDeleteAuditAlarm(), and SepAccessCheckAndAuditAlarm().
|
|
|
|
Definition at line 346 of file sepaudit.c. References ASSERT, ClientToken, NULL, PAGED_CODE, PrimaryToken, SepAdtAuditThisEvent, SepAdtLogAuditRecord(), SepSetParmTypeLogonId, SepSetParmTypeNoLogon, SepSetParmTypePrivileges, SepSetParmTypeSid, SepSetParmTypeString, SepTokenAuthenticationId, SepTokenUserSid, and SeSubsystemName. Referenced by NtPrivilegedServiceAuditAlarm(), and SePrivilegedServiceAuditAlarm().
|
|
Definition at line 125 of file sepaudit.c. References ASSERT, ClientToken, FALSE, NULL, PAGED_CODE, PrimaryToken, RtlEqualSid(), SeLocalSystemSid, SepAdtAuditThisEvent, SepAdtLogAuditRecord(), SepFilterPrivilegeAudits(), SepSetParmTypeLogonId, SepSetParmTypeNoLogon, SepSetParmTypePrivileges, SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, SepTokenAuthenticationId, SepTokenUserSid, and TRUE. Referenced by NtOpenObjectAuditAlarm(), NtPrivilegeObjectAuditAlarm(), SeAuditHandleCreation(), SepAccessCheckAndAuditAlarm(), and SePrivilegeObjectAuditAlarm().
|
|
|
|
Definition at line 451 of file adtlog.c. References PAGED_CODE, SepAdtLogInformation, SepRmAcquireDbWriteLock, and SepRmReleaseDbWriteLock. Referenced by SepRmSetAuditLogWrkr().
|
|
Referenced by SeTraverseAuditAlarm(). |
|
Definition at line 153 of file adtlog.c. References ASSERT, FALSE, KeBugCheck(), KeyName, L, NT_SUCCESS, NTSTATUS(), NULL, RtlInitUnicodeString(), SepCrashOnAuditFail, Status, and ValueName. Referenced by SepAdtLogAuditRecord().
|
|
Definition at line 4556 of file seaudit.c. References SepFilterPrivileges, SepFilterPrivilegesLong, SepFilterPrivilegesShort, and TRUE. Referenced by SepAdtInitializePrivilegeAuditing().
|
|
|
|
Definition at line 56 of file adtp.h. Referenced by SepAdtGenerateDiscardAudit(), and SepQueueWorkItem(). |
|
Definition at line 63 of file adtp.h. Referenced by SepDequeueWorkItem(), and SepQueueWorkItem(). |
|
Definition at line 70 of file adtp.h. Referenced by SepQueueWorkItem(). |
|
Definition at line 29 of file adtp.h. Referenced by SepAdtSetAuditLogInformation(). |
|
Definition at line 37 of file adtp.h. Referenced by SepAdtInitializeBounds(), and SepQueueWorkItem(). |
|
Definition at line 38 of file adtp.h. Referenced by SepAdtInitializeBounds(), and SepQueueWorkItem(). |
|
Definition at line 323 of file adtp.h. Referenced by SepAdtCloseObjectAuditAlarm(), and SepAdtInitializeAuditingOptions(). |
|
Definition at line 77 of file adtp.h. Referenced by SepAdtInitializeCrashOnFail(), SepAdtLogAuditRecord(), and SepAuditFailed(). |