Go to the source code of this file.
Classes | |
struct | _SECURITY_SUBJECT_CONTEXT |
struct | _INITIAL_PRIVILEGE_SET |
struct | _ACCESS_STATE |
struct | _AUX_ACCESS_DATA |
struct | _SE_AUDITING_STATE |
struct | _SE_PROCESS_AUDIT_INFO |
struct | _SE_EXPORTS |
Defines | |
#define | SE_DEFAULT_SECURITY_QUOTA 2048 |
#define | TOKEN_HAS_TRAVERSE_PRIVILEGE 0x01 |
#define | TOKEN_HAS_BACKUP_PRIVILEGE 0x02 |
#define | TOKEN_HAS_RESTORE_PRIVILEGE 0x04 |
#define | TOKEN_HAS_ADMIN_GROUP 0x08 |
#define | TOKEN_IS_RESTRICTED 0x10 |
#define | SE_BACKUP_PRIVILEGES_CHECKED 0x00000010 |
#define | INITIAL_PRIVILEGE_COUNT 3 |
#define | SeComputeDeniedAccesses(GrantedAccess, DesiredAccess) ((~(GrantedAccess)) & (DesiredAccess) ) |
#define | SeComputeGrantedAccesses(GrantedAccess, DesiredAccess) ((GrantedAccess) & (DesiredAccess) ) |
#define | SeLengthSid(Sid) (8 + (4 * ((SID *)Sid)->SubAuthorityCount)) |
#define | SeSameToken(TC1, TC2) |
#define | SeDeleteClientSecurity(C) |
*++ | |
#define | SeStopImpersonatingClient() PsRevertToSelf() |
*++ | |
#define | SeAssertMappedCanonicalAccess(AccessMask) |
#define | SeComputeSecurityQuota(Size) |
#define | SeQuerySubjectContextToken(SubjectContext) |
#define | SeTokenObjectType() (PVOID)SepTokenObjectType |
#define | SeEnableAccessToExports() |
Typedefs | |
typedef enum _SECURITY_OPERATION_CODE | SECURITY_OPERATION_CODE |
typedef enum _SECURITY_OPERATION_CODE * | PSECURITY_OPERATION_CODE |
typedef _SECURITY_SUBJECT_CONTEXT | SECURITY_SUBJECT_CONTEXT |
typedef _SECURITY_SUBJECT_CONTEXT * | PSECURITY_SUBJECT_CONTEXT |
typedef _INITIAL_PRIVILEGE_SET | INITIAL_PRIVILEGE_SET |
typedef _INITIAL_PRIVILEGE_SET * | PINITIAL_PRIVILEGE_SET |
typedef _ACCESS_STATE | ACCESS_STATE |
typedef _ACCESS_STATE * | PACCESS_STATE |
typedef _AUX_ACCESS_DATA | AUX_ACCESS_DATA |
typedef _AUX_ACCESS_DATA * | PAUX_ACCESS_DATA |
typedef _SE_AUDITING_STATE | SE_AUDITING_STATE |
typedef _SE_AUDITING_STATE * | PSE_AUDITING_STATE |
typedef _SE_PROCESS_AUDIT_INFO | SE_PROCESS_AUDIT_INFO |
typedef _SE_PROCESS_AUDIT_INFO * | PSE_PROCESS_AUDIT_INFO |
typedef _SE_EXPORTS | SE_EXPORTS |
typedef _SE_EXPORTS * | PSE_EXPORTS |
typedef NTSTATUS(* | PSE_LOGON_SESSION_TERMINATED_ROUTINE )(IN PLUID LogonId) |
Enumerations | |
enum | _SECURITY_OPERATION_CODE { SetSecurityDescriptor, QuerySecurityDescriptor, DeleteSecurityDescriptor, AssignSecurityDescriptor } |
Functions | |
BOOLEAN | SeInitSystem (VOID) |
VOID | SeSetSecurityAccessMask (IN SECURITY_INFORMATION SecurityInformation, OUT PACCESS_MASK DesiredAccess) |
VOID | SeQuerySecurityAccessMask (IN SECURITY_INFORMATION SecurityInformation, OUT PACCESS_MASK DesiredAccess) |
NTSTATUS | SeDefaultObjectMethod (IN PVOID Object, IN SECURITY_OPERATION_CODE OperationCode, IN PSECURITY_INFORMATION SecurityInformation, IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG Length, IN OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping) |
NTKERNELAPI NTSTATUS | SeCaptureSecurityDescriptor (IN PSECURITY_DESCRIPTOR InputSecurityDescriptor, IN KPROCESSOR_MODE RequestorMode, IN POOL_TYPE PoolType, IN BOOLEAN ForceCapture, OUT PSECURITY_DESCRIPTOR *OutputSecurityDescriptor) |
NTKERNELAPI VOID | SeReleaseSecurityDescriptor (IN PSECURITY_DESCRIPTOR CapturedSecurityDescriptor, IN KPROCESSOR_MODE RequestorMode, IN BOOLEAN ForceCapture) |
NTKERNELAPI VOID | SeCaptureSubjectContext (OUT PSECURITY_SUBJECT_CONTEXT SubjectContext) |
NTKERNELAPI VOID | SeLockSubjectContext (IN PSECURITY_SUBJECT_CONTEXT SubjectContext) |
NTKERNELAPI VOID | SeUnlockSubjectContext (IN PSECURITY_SUBJECT_CONTEXT SubjectContext) |
NTKERNELAPI VOID | SeReleaseSubjectContext (IN PSECURITY_SUBJECT_CONTEXT SubjectContext) |
NTSTATUS | SeCaptureSecurityQos (IN POBJECT_ATTRIBUTES ObjectAttributes OPTIONAL, IN KPROCESSOR_MODE RequestorMode, IN PBOOLEAN SecurityQosPresent, IN PSECURITY_ADVANCED_QUALITY_OF_SERVICE CapturedSecurityQos) |
VOID | SeFreeCapturedSecurityQos (IN PVOID SecurityQos) |
NTSTATUS | SeCaptureSid (IN PSID InputSid, IN KPROCESSOR_MODE RequestorMode, IN PVOID CaptureBuffer OPTIONAL, IN ULONG CaptureBufferLength, IN POOL_TYPE PoolType, IN BOOLEAN ForceCapture, OUT PSID *CapturedSid) |
VOID | SeReleaseSid (IN PSID CapturedSid, IN KPROCESSOR_MODE RequestorMode, IN BOOLEAN ForceCapture) |
NTSTATUS | SeCaptureAcl (IN PACL InputAcl, IN KPROCESSOR_MODE RequestorMode, IN PVOID CaptureBuffer OPTIONAL, IN ULONG CaptureBufferLength, IN POOL_TYPE PoolType, IN BOOLEAN ForceCapture, OUT PACL *CapturedAcl, OUT PULONG AlignedAclSize) |
VOID | SeReleaseAcl (IN PACL CapturedAcl, IN KPROCESSOR_MODE RequestorMode, IN BOOLEAN ForceCapture) |
NTSTATUS | SeCaptureLuidAndAttributesArray (IN PLUID_AND_ATTRIBUTES InputArray, IN ULONG ArrayCount, IN KPROCESSOR_MODE RequestorMode, IN PVOID CaptureBuffer OPTIONAL, IN ULONG CaptureBufferLength, IN POOL_TYPE PoolType, IN BOOLEAN ForceCapture, OUT PLUID_AND_ATTRIBUTES *CapturedArray, OUT PULONG AlignedArraySize) |
VOID | SeReleaseLuidAndAttributesArray (IN PLUID_AND_ATTRIBUTES CapturedArray, IN KPROCESSOR_MODE RequestorMode, IN BOOLEAN ForceCapture) |
NTSTATUS | SeCaptureSidAndAttributesArray (IN PSID_AND_ATTRIBUTES InputArray, IN ULONG ArrayCount, IN KPROCESSOR_MODE RequestorMode, IN PVOID CaptureBuffer OPTIONAL, IN ULONG CaptureBufferLength, IN POOL_TYPE PoolType, IN BOOLEAN ForceCapture, OUT PSID_AND_ATTRIBUTES *CapturedArray, OUT PULONG AlignedArraySize) |
VOID | SeReleaseSidAndAttributesArray (IN PSID_AND_ATTRIBUTES CapturedArray, IN KPROCESSOR_MODE RequestorMode, IN BOOLEAN ForceCapture) |
NTKERNELAPI NTSTATUS | SeAssignSecurity (IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL, IN PSECURITY_DESCRIPTOR ExplicitDescriptor, OUT PSECURITY_DESCRIPTOR *NewDescriptor, IN BOOLEAN IsDirectoryObject, IN PSECURITY_SUBJECT_CONTEXT SubjectContext, IN PGENERIC_MAPPING GenericMapping, IN POOL_TYPE PoolType) |
NTKERNELAPI NTSTATUS | SeAssignSecurityEx (IN PSECURITY_DESCRIPTOR ParentDescriptor OPTIONAL, IN PSECURITY_DESCRIPTOR ExplicitDescriptor OPTIONAL, OUT PSECURITY_DESCRIPTOR *NewDescriptor, IN GUID *ObjectType OPTIONAL, IN BOOLEAN IsDirectoryObject, IN ULONG AutoInheritFlags, IN PSECURITY_SUBJECT_CONTEXT SubjectContext, IN PGENERIC_MAPPING GenericMapping, IN POOL_TYPE PoolType) |
NTKERNELAPI NTSTATUS | SeDeassignSecurity (IN OUT PSECURITY_DESCRIPTOR *SecurityDescriptor) |
NTKERNELAPI BOOLEAN | SeAccessCheck (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN BOOLEAN SubjectContextLocked, IN ACCESS_MASK DesiredAccess, IN ACCESS_MASK PreviouslyGrantedAccess, OUT PPRIVILEGE_SET *Privileges OPTIONAL, IN PGENERIC_MAPPING GenericMapping, IN KPROCESSOR_MODE AccessMode, OUT PACCESS_MASK GrantedAccess, OUT PNTSTATUS AccessStatus) |
BOOLEAN | SeProxyAccessCheck (IN PUNICODE_STRING Volume, IN PUNICODE_STRING RelativePath, IN BOOLEAN ContainerObject, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN BOOLEAN SubjectContextLocked, IN ACCESS_MASK DesiredAccess, IN ACCESS_MASK PreviouslyGrantedAccess, OUT PPRIVILEGE_SET *Privileges OPTIONAL, IN PGENERIC_MAPPING GenericMapping, IN KPROCESSOR_MODE AccessMode, OUT PACCESS_MASK GrantedAccess, OUT PNTSTATUS AccessStatus) |
NTKERNELAPI BOOLEAN | SePrivilegeCheck (IN OUT PPRIVILEGE_SET RequiredPrivileges, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN KPROCESSOR_MODE AccessMode) |
NTKERNELAPI VOID | SeFreePrivileges (IN PPRIVILEGE_SET Privileges) |
NTSTATUS | SePrivilegePolicyCheck (IN OUT PACCESS_MASK RemainingDesiredAccess, IN OUT PACCESS_MASK PreviouslyGrantedAccess, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext OPTIONAL, IN PACCESS_TOKEN Token OPTIONAL, OUT PPRIVILEGE_SET *PrivilegeSet, IN KPROCESSOR_MODE PreviousMode) |
VOID | SeGenerateMessage (IN PSTRING ObjectName, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PACCESS_TOKEN Token, IN ACCESS_MASK DesiredAccess, IN BOOLEAN AccessGranted, IN HANDLE AuditPort, IN HANDLE AlarmPort, IN KPROCESSOR_MODE AccessMode) |
NTKERNELAPI VOID | SeOpenObjectAuditAlarm (IN PUNICODE_STRING ObjectTypeName, IN PVOID Object OPTIONAL, IN PUNICODE_STRING AbsoluteObjectName OPTIONAL, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PACCESS_STATE AccessState, IN BOOLEAN ObjectCreated, IN BOOLEAN AccessGranted, IN KPROCESSOR_MODE AccessMode, OUT PBOOLEAN GenerateOnClose) |
NTKERNELAPI VOID | SeOpenObjectForDeleteAuditAlarm (IN PUNICODE_STRING ObjectTypeName, IN PVOID Object OPTIONAL, IN PUNICODE_STRING AbsoluteObjectName OPTIONAL, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PACCESS_STATE AccessState, IN BOOLEAN ObjectCreated, IN BOOLEAN AccessGranted, IN KPROCESSOR_MODE AccessMode, OUT PBOOLEAN GenerateOnClose) |
VOID | SeDeleteObjectAuditAlarm (IN PVOID Object, IN HANDLE Handle) |
VOID | SeCloseObjectAuditAlarm (IN PVOID Object, IN HANDLE Handle, IN BOOLEAN GenerateOnClose) |
VOID | SeTraverseAuditAlarm (IN PLUID OperationID, IN PVOID DirectoryObject, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN BOOLEAN SubjectContextLocked, IN ACCESS_MASK TraverseAccess, IN PPRIVILEGE_SET Privileges OPTIONAL, IN BOOLEAN AccessGranted, IN KPROCESSOR_MODE AccessMode) |
VOID | SeCreateInstanceAuditAlarm (IN PLUID OperationID OPTIONAL, IN PVOID Object, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET Privileges OPTIONAL, IN BOOLEAN AccessGranted, IN KPROCESSOR_MODE AccessMode) |
VOID | SeCreateObjectAuditAlarm (IN PLUID OperationID OPTIONAL, IN PVOID Object, IN PUNICODE_STRING ComponentName, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET Privileges OPTIONAL, IN BOOLEAN AccessGranted, OUT PBOOLEAN AuditPerformed, IN KPROCESSOR_MODE AccessMode) |
VOID | SeObjectReferenceAuditAlarm (IN PLUID OperationID OPTIONAL, IN PVOID Object, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET Privileges OPTIONAL, IN BOOLEAN AccessGranted, IN KPROCESSOR_MODE AccessMode) |
NTKERNELAPI VOID | SePrivilegeObjectAuditAlarm (IN HANDLE Handle, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN ACCESS_MASK DesiredAccess, IN PPRIVILEGE_SET Privileges, IN BOOLEAN AccessGranted, IN KPROCESSOR_MODE AccessMode) |
BOOLEAN | SeCheckPrivilegedObject (LUID PrivilegeValue, HANDLE ObjectHandle, ACCESS_MASK DesiredAccess, KPROCESSOR_MODE PreviousMode) |
NTKERNELAPI BOOLEAN | SeValidSecurityDescriptor (IN ULONG Length, IN PSECURITY_DESCRIPTOR SecurityDescriptor) |
VOID | SeAuditHandleCreation (IN PACCESS_STATE AccessState, IN HANDLE Handle) |
PACCESS_TOKEN | SeMakeSystemToken () |
PACCESS_TOKEN | SeMakeAnonymousLogonToken () |
VOID | SeGetTokenControlInformation (IN PACCESS_TOKEN Token, OUT PTOKEN_CONTROL TokenControl) |
NTKERNELAPI TOKEN_TYPE | SeTokenType (IN PACCESS_TOKEN Token) |
SECURITY_IMPERSONATION_LEVEL | SeTokenImpersonationLevel (IN PACCESS_TOKEN Token) |
NTKERNELAPI BOOLEAN | SeTokenIsAdmin (IN PACCESS_TOKEN Token) |
NTKERNELAPI BOOLEAN | SeTokenIsRestricted (IN PACCESS_TOKEN Token) |
NTSTATUS | SeSubProcessToken (IN PEPROCESS ParentProcess, OUT PACCESS_TOKEN *ChildToken) |
VOID | SeAssignPrimaryToken (IN PEPROCESS Process, IN PACCESS_TOKEN Token) |
VOID | SeDeassignPrimaryToken (IN PEPROCESS Process) |
NTSTATUS | SeExchangePrimaryToken (IN PEPROCESS Process, IN PACCESS_TOKEN NewAccessToken, OUT PACCESS_TOKEN *OldAccessToken) |
NTSTATUS | SeCopyClientToken (IN PACCESS_TOKEN ClientToken, IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel, IN KPROCESSOR_MODE RequestorMode, OUT PACCESS_TOKEN *DuplicateToken) |
NTSTATUS | SeFilterToken (IN PACCESS_TOKEN ExistingToken, IN ULONG Flags, IN PTOKEN_GROUPS SidsToDisable OPTIONAL, IN PTOKEN_PRIVILEGES PrivilegesToDelete OPTIONAL, IN PTOKEN_GROUPS RestrictedSids OPTIONAL, OUT PACCESS_TOKEN *FilteredToken) |
NTKERNELAPI NTSTATUS | SeQueryAuthenticationIdToken (IN PACCESS_TOKEN Token, OUT PLUID AuthenticationId) |
NTKERNELAPI NTSTATUS | SeQuerySessionIdToken (IN PACCESS_TOKEN, IN PULONG pSessionId) |
NTKERNELAPI NTSTATUS | SeSetSessionIdToken (IN PACCESS_TOKEN, IN ULONG SessionId) |
NTKERNELAPI NTSTATUS | SeCreateClientSecurity (IN PETHREAD ClientThread, IN PSECURITY_QUALITY_OF_SERVICE ClientSecurityQos, IN BOOLEAN RemoteSession, OUT PSECURITY_CLIENT_CONTEXT ClientContext) |
NTKERNELAPI VOID | SeImpersonateClient (IN PSECURITY_CLIENT_CONTEXT ClientContext, IN PETHREAD ServerThread OPTIONAL) |
NTKERNELAPI NTSTATUS | SeImpersonateClientEx (IN PSECURITY_CLIENT_CONTEXT ClientContext, IN PETHREAD ServerThread OPTIONAL) |
NTKERNELAPI NTSTATUS | SeCreateClientSecurityFromSubjectContext (IN PSECURITY_SUBJECT_CONTEXT SubjectContext, IN PSECURITY_QUALITY_OF_SERVICE ClientSecurityQos, IN BOOLEAN ServerIsRemote, OUT PSECURITY_CLIENT_CONTEXT ClientContext) |
NTKERNELAPI NTSTATUS | SeCreateAccessState (IN PACCESS_STATE AccessState, IN PAUX_ACCESS_DATA AuxData, IN ACCESS_MASK DesiredAccess, IN PGENERIC_MAPPING GenericMapping) |
NTKERNELAPI VOID | SeDeleteAccessState (IN PACCESS_STATE AccessState) |
NTSTATUS | SeUpdateClientSecurity (IN PETHREAD ClientThread, IN OUT PSECURITY_CLIENT_CONTEXT ClientContext, OUT PBOOLEAN ChangesMade, OUT PBOOLEAN NewToken) |
BOOLEAN | SeRmInitPhase1 () |
NTKERNELAPI NTSTATUS | SeQuerySecurityDescriptorInfo (IN PSECURITY_INFORMATION SecurityInformation, OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG Length, IN PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor) |
NTKERNELAPI NTSTATUS | SeSetSecurityDescriptorInfo (IN PVOID Object OPTIONAL, IN PSECURITY_INFORMATION SecurityInformation, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping) |
NTKERNELAPI NTSTATUS | SeSetSecurityDescriptorInfoEx (IN PVOID Object OPTIONAL, IN PSECURITY_INFORMATION SecurityInformation, IN PSECURITY_DESCRIPTOR ModificationDescriptor, IN OUT PSECURITY_DESCRIPTOR *ObjectsSecurityDescriptor, IN ULONG AutoInheritFlags, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping) |
NTKERNELAPI NTSTATUS | SeAppendPrivileges (PACCESS_STATE AccessState, PPRIVILEGE_SET Privileges) |
NTSTATUS | SeComputeQuotaInformationSize (IN PSECURITY_DESCRIPTOR SecurityDescriptor, OUT PULONG Size) |
VOID | SePrivilegedServiceAuditAlarm (IN PUNICODE_STRING ServiceName, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN PPRIVILEGE_SET Privileges, IN BOOLEAN AccessGranted) |
NTKERNELAPI BOOLEAN | SeSinglePrivilegeCheck (LUID PrivilegeValue, KPROCESSOR_MODE PreviousMode) |
BOOLEAN | SeCheckAuditPrivilege (IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext, IN KPROCESSOR_MODE PreviousMode) |
NTSTATUS | SeAssignWorldSecurityDescriptor (IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG Length, IN PSECURITY_INFORMATION SecurityInformation) |
BOOLEAN | SeFastTraverseCheck (PSECURITY_DESCRIPTOR SecurityDescriptor, ACCESS_MASK TraverseAccess, KPROCESSOR_MODE AccessMode) |
NTKERNELAPI BOOLEAN | SeAuditingFileEvents (IN BOOLEAN AccessGranted, IN PSECURITY_DESCRIPTOR SecurityDescriptor) |
NTKERNELAPI BOOLEAN | SeAuditingFileOrGlobalEvents (IN BOOLEAN AccessGranted, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN PSECURITY_SUBJECT_CONTEXT SubjectSecurityContext) |
VOID | SeAuditProcessCreation (PEPROCESS Process, PEPROCESS Parent, PUNICODE_STRING ImageFileName) |
VOID | SeAuditProcessExit (PEPROCESS Process) |
VOID | SeAuditHandleDuplication (PVOID SourceHandle, PVOID NewHandle, PEPROCESS SourceProcess, PEPROCESS TargetProcess) |
VOID | SeSetAccessStateGenericMapping (PACCESS_STATE AccessState, PGENERIC_MAPPING GenericMapping) |
NTKERNELAPI NTSTATUS | SeRegisterLogonSessionTerminatedRoutine (IN PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine) |
NTKERNELAPI NTSTATUS | SeUnregisterLogonSessionTerminatedRoutine (IN PSE_LOGON_SESSION_TERMINATED_ROUTINE CallbackRoutine) |
NTKERNELAPI NTSTATUS | SeMarkLogonSessionForTerminationNotification (IN PLUID LogonId) |
NTKERNELAPI NTSTATUS | SeQueryInformationToken (IN PACCESS_TOKEN Token, IN TOKEN_INFORMATION_CLASS TokenInformationClass, OUT PVOID *TokenInformation) |
NTSTATUS | SeIsChildToken (IN HANDLE Token, OUT PBOOLEAN IsChild) |
NTSTATUS | SeIsChildTokenByPointer (IN PACCESS_TOKEN Token, OUT PBOOLEAN IsChild) |
NTSTATUS | SeFastFilterToken (IN PACCESS_TOKEN ExistingToken, IN KPROCESSOR_MODE RequestorMode, IN ULONG Flags, IN ULONG GroupCount, IN PSID_AND_ATTRIBUTES GroupsToDisable OPTIONAL, IN ULONG PrivilegeCount, IN PLUID_AND_ATTRIBUTES PrivilegesToDelete OPTIONAL, IN ULONG SidCount, IN PSID_AND_ATTRIBUTES RestrictedSids OPTIONAL, IN ULONG SidLength, OUT PACCESS_TOKEN *FilteredToken) |
Variables | |
_OBJECT_TYPE * | SepTokenObjectType |
NTKERNELAPI PSE_EXPORTS | SeExports |
LUID | SeSystemAuthenticationId |
LUID | SeAnonymousAuthenticationId |
TOKEN_SOURCE | SeSystemTokenSource |
PSID | SeNullSid |
PSID | SeWorldSid |
PSID | SeLocalSid |
PSID | SeCreatorOwnerSid |
PSID | SeCreatorGroupSid |
PSID | SeCreatorOwnerServerSid |
PSID | SeCreatorGroupServerSid |
PSID | SePrincipalSelfSid |
PSID | SeNtAuthoritySid |
PSID | SeDialupSid |
PSID | SeNetworkSid |
PSID | SeBatchSid |
PSID | SeInteractiveSid |
PSID | SeLocalSystemSid |
PSID | SeAuthenticatedUsersSid |
PSID | SeAliasAdminsSid |
PSID | SeRestrictedSid |
PSID | SeAnonymousLogonSid |
PSID | SeAliasUsersSid |
PSID | SeAliasGuestsSid |
PSID | SeAliasPowerUsersSid |
PSID | SeAliasAccountOpsSid |
PSID | SeAliasSystemOpsSid |
PSID | SeAliasPrintOpsSid |
PSID | SeAliasBackupOpsSid |
PACCESS_TOKEN | SeAnonymousLogonToken |
PSECURITY_DESCRIPTOR | SePublicDefaultSd |
PSECURITY_DESCRIPTOR | SePublicDefaultUnrestrictedSd |
PSECURITY_DESCRIPTOR | SePublicOpenSd |
PSECURITY_DESCRIPTOR | SePublicOpenUnrestrictedSd |
PSECURITY_DESCRIPTOR | SeSystemDefaultSd |
PSECURITY_DESCRIPTOR | SeUnrestrictedSd |
PACL | SePublicDefaultDacl |
PACL | SePublicDefaultUnrestrictedDacl |
PACL | SePublicOpenDacl |
PACL | SePublicOpenUnrestrictedDacl |
PACL | SeSystemDefaultDacl |
PACL | SeUnrestrictedDacl |
LUID | SeCreateTokenPrivilege |
LUID | SeAssignPrimaryTokenPrivilege |
LUID | SeLockMemoryPrivilege |
LUID | SeIncreaseQuotaPrivilege |
LUID | SeUnsolicitedInputPrivilege |
LUID | SeTcbPrivilege |
LUID | SeSecurityPrivilege |
LUID | SeTakeOwnershipPrivilege |
LUID | SeLoadDriverPrivilege |
LUID | SeCreatePagefilePrivilege |
LUID | SeIncreaseBasePriorityPrivilege |
LUID | SeSystemProfilePrivilege |
LUID | SeSystemtimePrivilege |
LUID | SeProfileSingleProcessPrivilege |
LUID | SeCreatePermanentPrivilege |
LUID | SeBackupPrivilege |
LUID | SeRestorePrivilege |
LUID | SeShutdownPrivilege |
LUID | SeDebugPrivilege |
LUID | SeAuditPrivilege |
LUID | SeSystemEnvironmentPrivilege |
LUID | SeChangeNotifyPrivilege |
LUID | SeRemoteShutdownPrivilege |
LUID | SeUndockPrivilege |
LUID | SeSyncAgentPrivilege |
LUID | SeEnableDelegationPrivilege |
SE_AUDITING_STATE | SeAuditingState [] |
BOOLEAN | SeDetailedAuditing |
UNICODE_STRING | SeSubsystemName |
|
Definition at line 147 of file se.h. Referenced by SeAppendPrivileges(). |
|
Definition at line 85 of file se.h. Referenced by IopCheckBackupRestorePrivilege(), and IopParseDevice(). |
|
Definition at line 62 of file se.h. Referenced by ObpAllocateObject(), ObpChargeQuotaForObject(), ObpFreeObject(), and ObValidateSecurityQuota(). |
|
Value:
Definition at line 650 of file se.h. Referenced by SeAccessCheck(), and SepAccessCheck(). |
|
Definition at line 480 of file se.h. Referenced by IoCheckDesiredAccess(), IoCheckFunctionAccess(), NtSignalAndWaitForSingleObject(), NtWaitForMultipleObjects(), and ObReferenceObjectByHandle(). |
|
Definition at line 515 of file se.h. Referenced by IoCheckFunctionAccess(), IopXxxControlFile(), NtFlushBuffersFile(), NtLockFile(), NtUnlockFile(), NtWriteFile(), and NtWriteFileGather(). |
|
Value:
Definition at line 676 of file se.h. Referenced by ObpCaptureObjectCreateInformation(). |
|
Value: *++
Definition at line 612 of file se.h. Referenced by CmLoadKey(), FreeDdeConv(), LpcpFreePortClientSecurity(), MESSAGECALL(), and NtImpersonateThread(). |
|
Definition at line 1589 of file se.h. Referenced by InitSecurity(). |
|
|
Value:
Definition at line 732 of file se.h. Referenced by NtSetUuidSeed(), and SeCreateClientSecurityFromSubjectContext(). |
|
Value:
|
|
*++
|
|
Definition at line 1213 of file se.h. Referenced by NtSetInformationJobObject(), PsAssignImpersonationToken(), PspAssignPrimaryToken(), and PspSetPrimaryToken(). |
|
Definition at line 75 of file se.h. Referenced by SepCreateToken(), SepMakeTokenEffectiveOnly(), SepRemoveDisabledGroupsAndPrivileges(), and SeTokenIsAdmin(). |
|
Definition at line 73 of file se.h. Referenced by IopCheckBackupRestorePrivilege(). |
|
Definition at line 74 of file se.h. Referenced by IopCheckBackupRestorePrivilege(). |
|
Definition at line 72 of file se.h. Referenced by IopParseDevice(), ObpLookupObjectName(), SeCreateAccessState(), SepAdjustPrivileges(), SepCreateToken(), and SepRemoveDisabledGroupsAndPrivileges(). |
|
Definition at line 76 of file se.h. Referenced by IopParseDevice(), ObpCheckTraverseAccess(), SepFilterToken(), SepTokenIsOwner(), and SeTokenIsRestricted(). |
|
Referenced by SeCreateAccessState(). |
|
Referenced by NtDuplicateObject(). |
|
|
|
|
|
Referenced by ObpCreateHandle(). |
|
|
|
|
|
|
|
Definition at line 434 of file se.h. Referenced by SeRegisterLogonSessionTerminatedRoutine(). |
|
Referenced by ObAuditInheritedHandleProcedure(). |
|
|
|
Referenced by SeAccessCheck(). |
|
|
|
|
|
Referenced by ObInitProcess(). |
|
|
|
Referenced by SeAccessCheckByType(), and SeSinglePrivilegeCheck(). |
|
Definition at line 43 of file se.h.
|
|
Definition at line 3323 of file accessck.c. References DbgPrint, EffectiveToken, FALSE, KernelMode, NULL, PAGED_CODE, PSECURITY_SUBJECT_CONTEXT, SeAssertMappedCanonicalAccess, SeLockSubjectContext(), SepAccessCheck(), SepDumpSecurityDescriptor(), SepDumpTokenInfo(), SepTokenIsOwner(), SeUnlockSubjectContext(), and TRUE. Referenced by CmpCheckCreateAccess(), CmpCheckNotifyAccess(), IopParseDevice(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObpCheckObjectReference(), ObpCheckTraverseAccess(), PspCreateProcess(), PspCreateThread(), PspSetPrimaryToken(), SeProxyAccessCheck(), and TestAccessCheck().
|
|
Definition at line 434 of file seastate.c. References _ACCESS_STATE::AuxData, ExAllocatePoolWithTag, ExFreePool(), INITIAL_PRIVILEGE_COUNT, NULL, PAGED_CODE, PagedPool, _ACCESS_STATE::PrivilegesAllocated, _AUX_ACCESS_DATA::PrivilegesUsed, SepConcatenatePrivileges(), SepPrivilegeSetSize, and TRUE. Referenced by IopCheckBackupRestorePrivilege(), IopParseDevice(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObpCheckTraverseAccess(), and ObpIncrementHandleCount().
|
|
Definition at line 241 of file token.c. References ASSERT, NTSTATUS(), NULL, ObReferenceObject, PAGED_CODE, PTOKEN, SeDeassignPrimaryToken(), Status, Token, and TRUE. Referenced by PspInitializeProcessSecurity().
|
|
Definition at line 89 of file seassign.c. References NT_SUCCESS, NTSTATUS(), NULL, PAGED_CODE, PagedPool, RtlpNewSecurityObject(), SepDumpSecurityDescriptor(), and Status. Referenced by CmpDoCreateChild(), ObAssignSecurity(), TestAssignSecurity(), and xxxCreateWindowStation().
|
|
Definition at line 228 of file seassign.c. References NT_SUCCESS, NTSTATUS(), PAGED_CODE, PagedPool, RtlpNewSecurityObject(), SepDumpSecurityDescriptor(), and Status.
|
|
Definition at line 529 of file seassign.c. References NT_SUCCESS, NTSTATUS(), PAGED_CODE, RtlCreateSecurityDescriptorRelative(), SeLengthSid, SeWorldSid, and Status. Referenced by IopGetSetSecurityObject().
|
|
Definition at line 3736 of file seaudit.c. References FALSE, Handle, NULL, PAGED_CODE, _AUX_ACCESS_DATA::PrivilegesUsed, PsGetCurrentProcessId(), PTOKEN, SepAdtOpenObjectAuditAlarm(), SepAdtPrivilegeObjectAuditAlarm(), SeSubsystemName, and TRUE. Referenced by NtDuplicateObject(), and ObpCreateHandle().
|
|
Definition at line 2573 of file sepaudit.c. References ASSERT, EffectiveToken, PAGED_CODE, PsProcessAuditId, SeCaptureSubjectContext(), SepAdtLogAuditRecord(), SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, SepTokenUserSid, SeReleaseSubjectContext(), and SeSubsystemName. Referenced by NtDuplicateObject(), and ObAuditInheritedHandleProcedure().
|
|
Definition at line 4693 of file seaudit.c. References PAGED_CODE, and SepAdtAuditThisEvent.
|
|
Definition at line 4648 of file seaudit.c. References EffectiveToken, FALSE, NULL, PAGED_CODE, PTOKEN, SepAdtAuditThisEvent, and TRUE.
|
|
Definition at line 2466 of file sepaudit.c. References ASSERT, NTSTATUS(), NULL, PAGED_CODE, _SECURITY_SUBJECT_CONTEXT::PrimaryToken, SeCaptureSubjectContext(), SepAdtLogAuditRecord(), SepSetParmTypeLogonId, SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, SepTokenAuthenticationId, SepTokenUserSid, SeReleaseSubjectContext(), SeSubsystemName, and Status. Referenced by PspCreateProcess().
|
|
Definition at line 2653 of file sepaudit.c. References ASSERT, PAGED_CODE, PsProcessAuditId, PTOKEN, SepAdtLogAuditRecord(), SepSetParmTypeLogonId, SepSetParmTypeSid, SepSetParmTypeString, SepSetParmTypeUlong, SepTokenAuthenticationId, SepTokenUserSid, SeSubsystemName, Token, and _EPROCESS::Token. Referenced by PspProcessDelete().
|
|
Definition at line 1370 of file se/capture.c. References ExAllocatePoolWithTag, EXCEPTION_EXECUTE_HANDLER, ExFreePool(), FALSE, KernelMode, NULL, PAGED_CODE, ProbeAndReadUshort, ProbeForRead, and SepCheckAcl(). Referenced by NtCreateToken(), and NtSetInformationToken().
|
|
Definition at line 1608 of file se/capture.c. References ExAllocatePoolWithTag, EXCEPTION_EXECUTE_HANDLER, ExFreePool(), FALSE, InputArray, KernelMode, NULL, PAGED_CODE, ProbeForRead, and SEP_MAX_PRIVILEGE_COUNT. Referenced by NtAdjustPrivilegesToken(), NtCreateToken(), NtFilterToken(), NtPrivilegeCheck(), and PspCaptureTokenFilter().
|
|
Definition at line 53 of file se/capture.c. References ExAllocatePoolWithTag, EXCEPTION_EXECUTE_HANDLER, ExFreePool(), ExRaiseDatatypeMisalignment(), FALSE, KernelMode, NULL, PAGED_CODE, ProbeAndReadUchar, ProbeAndReadUshort, ProbeForRead, RtlLengthRequiredSid(), RtlValidSid(), SepCheckAcl(), Size, and USHORT. Referenced by IopGetRegistrySecurityWithFallback(), IopSetSecurityObjectFromRegistry(), NtLoadKey2(), NtOpenObjectAuditAlarm(), NtSetSecurityObject(), NtUserCreateWindowStation(), ObpCaptureObjectCreateInformation(), SeAccessCheckByType(), SepAccessCheckAndAuditAlarm(), and TestCaptureSecurityDescriptor().
|
|
|
|
Definition at line 1141 of file se/capture.c. References ExAllocatePoolWithTag, EXCEPTION_EXECUTE_HANDLER, ExFreePool(), FALSE, KernelMode, NULL, PAGED_CODE, ProbeAndReadUchar, ProbeForRead, RtlLengthRequiredSid(), and RtlValidSid(). Referenced by NtCreateToken(), NtSecureConnectPort(), NtSetInformationToken(), SeAccessCheckByType(), and SepAccessCheckAndAuditAlarm().
|
|
Definition at line 1850 of file se/capture.c. References ExAllocatePoolWithTag, EXCEPTION_EXECUTE_HANDLER, ExFreePool(), FALSE, InputArray, KernelMode, NT_SUCCESS, NTSTATUS(), NULL, PAGED_CODE, ProbeAndReadUchar, ProbeForRead, RtlLengthRequiredSid(), RtlLengthSid(), RtlValidSid(), and SEP_MAX_GROUP_COUNT. Referenced by NtAdjustGroupsToken(), NtCreateToken(), NtFilterToken(), and PspCaptureTokenFilter().
|
|
Definition at line 46 of file subject.c. References PAGED_CODE, PsGetCurrentProcess, PsGetCurrentThread, PsProcessAuditId, PsReferenceImpersonationToken(), and PsReferencePrimaryToken(). Referenced by CmpNotifyChangeKey(), IsPrivileged(), NtCloseObjectAuditAlarm(), NtDeleteObjectAuditAlarm(), NtOpenObjectAuditAlarm(), NtPrivilegedServiceAuditAlarm(), NtPrivilegeObjectAuditAlarm(), NtSetUuidSeed(), RtlpSetSecurityObject(), SeAccessCheckByType(), SeAuditHandleDuplication(), SeAuditProcessCreation(), SeCheckPrivilegedObject(), SeCloseObjectAuditAlarm(), SeCreateAccessState(), SeDeleteObjectAuditAlarm(), SepAccessCheckAndAuditAlarm(), SeSinglePrivilegeCheck(), and xxxCreateWindowStation().
|
|
Definition at line 199 of file seaudit.c. References KernelMode, NULL, PAGED_CODE, SeAuditPrivilege, SepPrivilegeCheck(), and SePrivilegedServiceAuditAlarm(). Referenced by NtCloseObjectAuditAlarm(), NtDeleteObjectAuditAlarm(), NtOpenObjectAuditAlarm(), NtPrivilegedServiceAuditAlarm(), NtPrivilegeObjectAuditAlarm(), and SepAccessCheckAndAuditAlarm().
|
|
Definition at line 504 of file privileg.c. References KernelMode, PAGED_CODE, SeCaptureSubjectContext(), SePrivilegeCheck(), SePrivilegeObjectAuditAlarm(), and SeReleaseSubjectContext(). Referenced by NtSetInformationJobObject(), NtSetInformationProcess(), NtSetInformationThread(), and PspSetPrimaryToken().
|
|
Definition at line 3826 of file seaudit.c. References EffectiveToken, Handle, NTSTATUS(), PAGED_CODE, SeCaptureSubjectContext(), SepAdtCloseObjectAuditAlarm(), SepTokenAuthenticationId, SepTokenUserSid, SeReleaseSubjectContext(), SeSubsystemName, and Status. Referenced by NtClose().
|
|
Definition at line 2350 of file se/capture.c. References Dacl, Group, NULL, PAGED_CODE, SeLengthSid, and Size. Referenced by ObpCaptureObjectCreateInformation().
|
|
Definition at line 1227 of file tokendup.c. References ClientToken, FALSE, NTSTATUS(), NULL, ObjectAttributes, PAGED_CODE, PTOKEN, SepDuplicateToken(), and Status. Referenced by SepCreateClientSecurity().
|
|
Definition at line 180 of file seastate.c. References ACCESS_STATE, ASSERT, EffectiveToken, ExAllocateLocallyUniqueId, FALSE, GENERIC_ACCESS, NULL, PAGED_CODE, PTOKEN, RtlMapGenericMask(), SeCaptureSubjectContext(), and TOKEN_HAS_TRAVERSE_PRIVILEGE. Referenced by AccessCheckObject(), NtDuplicateObject(), NtOpenProcess(), NtOpenThread(), ObInsertObject(), ObOpenObjectByName(), ObOpenObjectByPointer(), ObReferenceObjectByName(), and SepCreateToken().
|
|
Definition at line 209 of file seclient.c. References ClientThread(), NTSTATUS(), PAGED_CODE, PsReferenceEffectiveToken(), SepCreateClientSecurity(), Status, and Token. Referenced by CmLoadKey(), MESSAGECALL(), NtImpersonateThread(), and NtSecureConnectPort().
|
|
Definition at line 712 of file seclient.c. References FALSE, NTSTATUS(), ObReferenceObject, PAGED_CODE, SepCreateClientSecurity(), SeQuerySubjectContextToken, Status, and Token.
|
|
|
|
Definition at line 3538 of file seaudit.c. References DirectoryName, EffectiveToken, ExFreePool(), FALSE, KernelMode, NULL, PAGED_CODE, SepAdtAuditThisEvent, SepAdtCreateObjectAuditAlarm(), SepExamineSacl(), SepQueryNameString(), SepTokenAuthenticationId, SepTokenUserSid, and TRUE. Referenced by CmpCheckCreateAccess(), and ObCheckCreateObjectAccess().
|
|
Definition at line 302 of file token.c. References ASSERT, FALSE, ObDereferenceObject, PAGED_CODE, and PTOKEN. Referenced by PspDeleteProcessSecurity(), and SeAssignPrimaryToken().
|
|
Definition at line 373 of file seassign.c. References ExFreePool(), NULL, and PAGED_CODE. Referenced by CmpDoCreateChild(), ObAssignSecurity(), and xxxCreateWindowStation().
|
|
Definition at line 195 of file semethod.c. References ASSERT, AssignSecurityDescriptor, DeleteSecurityDescriptor, KeBugCheck(), NonPagedPool, NULL, ObAssignObjectSecurityDescriptor(), ObQuerySecurityDescriptorInfo(), ObSetSecurityDescriptorInfo(), PAGED_CODE, PagedPool, QuerySecurityDescriptor, SepDefaultDeleteMethod(), and SetSecurityDescriptor. Referenced by NtDuplicateObject(), ObCreateObjectType(), and TestDefaultObjectMethod().
|
|
|
|
Definition at line 3892 of file seaudit.c. References EffectiveToken, Handle, NTSTATUS(), PAGED_CODE, SeCaptureSubjectContext(), SepAdtDeleteObjectAuditAlarm(), SepTokenAuthenticationId, SepTokenUserSid, SeReleaseSubjectContext(), SeSubsystemName, and Status. Referenced by NtDeleteKey(), and NtMakeTemporaryObject().
|
|
Definition at line 346 of file token.c. References ASSERT, FALSE, NTSTATUS(), ObReferenceObject, PAGED_CODE, PTOKEN, Status, and TRUE. Referenced by PspAssignPrimaryToken().
|
|
Definition at line 1859 of file tokendup.c. References PTOKEN, and SepFilterToken(). Referenced by PsAssignImpersonationToken(), and PsImpersonateClient().
|
|
Definition at line 3871 of file accessck.c. References Dacl, FALSE, FirstAce, KernelMode, NextAce, NULL, PAGED_CODE, RtlEqualSid(), SeWorldSid, and TRUE. Referenced by IopParseDevice(), ObpCheckTraverseAccess(), ObpProcessDosDeviceSymbolicLink(), and ObSetSecurityDescriptorInfo().
|
|
Definition at line 1634 of file tokendup.c. References DbgPrint, Index, KernelMode, KPROCESSOR_MODE, NT_SUCCESS, NtClose(), NTSTATUS(), NULL, ObInsertObject(), ObReferenceObjectByHandle(), PAGED_CODE, PTOKEN, SepAcquireTokenReadLock, SepFilterToken(), SepReleaseTokenReadLock, SepTokenObjectType, Status, Token, and VOID().
|
|
Definition at line 910 of file se/capture.c. References ExFreePool(), NULL, PAGED_CODE, SecurityQos, and SepFreeProxyData(). Referenced by NtCreateToken(), and NtDuplicateToken().
|
|
Definition at line 3294 of file accessck.c. References ExFreePool(), and PAGED_CODE. Referenced by IopParseDevice(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObpCheckTraverseAccess(), and SeAccessCheckByType().
|
|
|
|
Definition at line 475 of file token.c. References PAGED_CODE, PTOKEN, SepAcquireTokenReadLock, SepReleaseTokenReadLock, and Token. Referenced by SepCreateClientSecurity().
|
|
Definition at line 593 of file seclient.c. References DbgPrint, PAGED_CODE, SeImpersonateClientEx(), ServerThread(), and VOID().
|
|
Definition at line 636 of file seclient.c. References NTSTATUS(), PAGED_CODE, PsGetCurrentThread, PsImpersonateClient(), ServerThread(), Status, and TRUE. Referenced by _ImpersonateDdeClientWindow(), CmpWorker(), NtImpersonateClientOfPort(), NtImpersonateThread(), and SeImpersonateClient().
|
|
Definition at line 41 of file seinit.c. References InitializationPhase, KeBugCheck(), PAGED_CODE, SepInitializationPhase0(), and SepInitializationPhase1().
|
|
Definition at line 2867 of file token.c. References FALSE, IsChild(), NT_SUCCESS, NTSTATUS(), NULL, ObDereferenceObject, ObReferenceObjectByHandle(), PsDereferencePrimaryToken, PsGetCurrentProcess, PsReferencePrimaryToken(), PTOKEN, RtlEqualLuid(), SepAcquireTokenReadLock, SepReleaseTokenReadLock, SepTokenObjectType, Status, Token, and TRUE.
|
|
Definition at line 2960 of file token.c. References FALSE, IsChild(), NTSTATUS(), PsDereferencePrimaryToken, PsGetCurrentProcess, PsReferencePrimaryToken(), PTOKEN, RtlEqualLuid(), SepAcquireTokenReadLock, SepReleaseTokenReadLock, Status, Token, and TRUE. Referenced by NtSetInformationJobObject(), and PspSetPrimaryToken().
|
|
Definition at line 115 of file subject.c. References PAGED_CODE, PTOKEN, and SepAcquireTokenReadLock. Referenced by CmpCheckCreateAccess(), CmpCheckNotifyAccess(), IopParseDevice(), IsPrivileged(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObpCheckObjectReference(), ObpCheckTraverseAccess(), RtlpNewSecurityObject(), SeAccessCheck(), SepAccessCheckAndAuditAlarm(), SeQueryAuthenticationIdSubjectContext(), SeTraverseAuditAlarm(), and xxxCreateWindowStation().
|
|
Referenced by SepInitializationPhase1(). |
|
Definition at line 536 of file token.c. References ASSERT, Buffer, DbgPrint, ExAllocatePoolWithTag, ExFreePool(), FALSE, KernelMode, NoExpiration, NormalGroupAttributes, NT_SUCCESS, NTSTATUS(), NULL, ObAssignObjectSecurityDescriptor(), ObDereferenceObject, Owner, OwnerGroupAttributes, PAGED_CODE, PagedPool, RtlAbsoluteToSelfRelativeSD(), RtlAddAccessAllowedAce(), RtlCreateAcl(), RtlCreateSecurityDescriptor(), RtlSetDaclSecurityDescriptor(), RtlSetGroupSecurityDescriptor(), RtlSetOwnerSecurityDescriptor(), RtlTimeFieldsToTime(), SeAliasAdminsSid, SeAssignPrimaryTokenPrivilege, SeAuditPrivilege, SeAuthenticatedUsersSid, SeBackupPrivilege, SeChangeNotifyPrivilege, SeCreatePagefilePrivilege, SeCreatePermanentPrivilege, SeCreateTokenPrivilege, SeDebugPrivilege, SeIncreaseBasePriorityPrivilege, SeIncreaseQuotaPrivilege, SeLengthSid, SeLoadDriverPrivilege, SeLocalSystemSid, SeLockMemoryPrivilege, SepCreateToken(), SeProfileSingleProcessPrivilege, SeRestorePrivilege, SeSecurityPrivilege, SeShutdownPrivilege, SeSystemAuthenticationId, SeSystemDefaultDacl, SeSystemEnvironmentPrivilege, SeSystemtimePrivilege, SeSystemTokenSource, SeTakeOwnershipPrivilege, SeTcbPrivilege, SeUndockPrivilege, SeWorldSid, Status, TimeFields, Token, and TRUE. Referenced by SepInitializationPhase0(), and TestMakeSystemToken().
|
|
Definition at line 979 of file rmlogon.c. References _SEP_LOGON_SESSION_REFERENCES::Flags, _SEP_LOGON_SESSION_REFERENCES::LogonId, _SEP_LOGON_SESSION_REFERENCES::Next, NULL, PAGED_CODE, RtlEqualLuid(), SEP_TERMINATION_NOTIFY, SepLogonSessionIndex, SepLogonSessions, SepRmAcquireDbWriteLock, and SepRmReleaseDbWriteLock.
|
|
Definition at line 3660 of file seaudit.c. References EffectiveToken, FALSE, KernelMode, NULL, PAGED_CODE, SepAdtAuditThisEvent, SepAdtObjectReferenceAuditAlarm(), and SepExamineSacl(). Referenced by ObpCheckObjectReference().
|
|
Definition at line 2765 of file seaudit.c. References EffectiveToken, ExAllocatePool, ExFreePool(), FALSE, _AUX_ACCESS_DATA::GenericMapping, KernelMode, NULL, PAGED_CODE, PagedPool, _AUX_ACCESS_DATA::PrivilegesUsed, PTOKEN, RtlCopyUnicodeString(), RtlMapGenericMask(), SepAdtAuditThisEvent, SepAdtOpenObjectAuditAlarm(), SepExamineSacl(), SepFilterPrivilegeAudits(), SepQueryNameString(), SepQueryTypeString(), SeSubsystemName, Token, and TRUE. Referenced by IopParseDevice(), and ObCheckObjectAccess().
|
|
Definition at line 3085 of file seaudit.c. References EffectiveToken, ExAllocatePool, ExFreePool(), FALSE, _AUX_ACCESS_DATA::GenericMapping, KernelMode, NULL, PAGED_CODE, PagedPool, _AUX_ACCESS_DATA::PrivilegesUsed, PTOKEN, RtlCopyUnicodeString(), RtlMapGenericMask(), SepAdtAuditThisEvent, SepAdtOpenObjectAuditAlarm(), SepAdtOpenObjectForDeleteAuditAlarm(), SepExamineSacl(), SepFilterPrivilegeAudits(), SepQueryNameString(), SepQueryTypeString(), SeSubsystemName, Token, and TRUE.
|
|
Definition at line 158 of file privileg.c. References EffectiveToken, FALSE, NULL, PAGED_CODE, SepPrivilegeCheck(), and Status. Referenced by IopCheckBackupRestorePrivilege(), IsPrivileged(), ObpIncrementHandleCount(), RtlpNewSecurityObject(), SeCheckPrivilegedObject(), and SeSinglePrivilegeCheck().
|
|
Definition at line 989 of file seaudit.c. References EffectiveToken, PAGED_CODE, PTOKEN, RtlEqualSid(), SeLocalSystemSid, SepAdtAuditThisEvent, SepAdtPrivilegedServiceAuditAlarm(), SepFilterPrivilegeAudits(), SepTokenUserSid, SeSubsystemName, and Token. Referenced by ObpIncrementHandleCount(), RtlpNewSecurityObject(), SeCheckAuditPrivilege(), and SeSinglePrivilegeCheck().
|
|
Definition at line 650 of file seaudit.c. References Handle, KernelMode, PAGED_CODE, SepAdtPrivilegeObjectAuditAlarm(), and SeSubsystemName. Referenced by IsPrivileged(), ObpCreateHandle(), and SeCheckPrivilegedObject().
|
|
|
|
Definition at line 3564 of file accessck.c. References SeAccessCheck().
|
|
Definition at line 1152 of file tokenqry.c. References PAGED_CODE, PTOKEN, SepAcquireTokenReadLock, SepReleaseTokenReadLock, and Token. Referenced by CheckAllowForeground(), GetProcessLuid(), NtSetUuidSeed(), and SeQueryAuthenticationIdSubjectContext().
|
|
Definition at line 1189 of file tokenqry.c. References ANYSIZE_ARRAY, ASSERT, ExAllocatePool, Index, NT_SUCCESS, NTSTATUS(), NULL, PAGED_CODE, PagedPool, PTOKEN, RtlCopyLuidAndAttributesArray(), RtlCopySid(), RtlCopySidAndAttributesArray(), SeLengthSid, SepAcquireTokenReadLock, SepReleaseTokenReadLock, SeQuerySessionIdToken(), Status, and Token. Referenced by NtSecureConnectPort().
|
|
Definition at line 138 of file semethod.c. References PAGED_CODE. Referenced by IoCheckFunctionAccess(), and NtQuerySecurityObject().
|
|
Definition at line 559 of file semethod.c. References EXCEPTION_EXECUTE_HANDLER, LongAlignPtr, NULL, PAGED_CODE, RtlCreateSecurityDescriptorRelative(), SeLengthSid, and Size. Referenced by CmpQuerySecurityDescriptorInfo(), IopGetSetSecurityObject(), and ObQuerySecurityDescriptorInfo().
|
|
|
|
Definition at line 849 of file rmlogon.c. References _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION::CallbackRoutine, ExAllocatePoolWithTag, _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION::Next, NULL, PAGED_CODE, PagedPool, PSE_LOGON_SESSION_TERMINATED_ROUTINE, PSEP_LOGON_SESSION_TERMINATED_NOTIFICATION, SeFileSystemNotifyRoutinesHead, SepRmAcquireDbWriteLock, and SepRmReleaseDbWriteLock.
|
|
Definition at line 1560 of file se/capture.c. References ExFreePool(), KernelMode, PAGED_CODE, TRUE, and UserMode. Referenced by NtCreateToken(), and NtSetInformationToken().
|
|
Definition at line 1797 of file se/capture.c. References ExFreePool(), KernelMode, NULL, PAGED_CODE, TRUE, and UserMode. Referenced by NtAdjustPrivilegesToken(), NtCreateToken(), NtFilterToken(), and NtPrivilegeCheck().
|
|
Definition at line 631 of file se/capture.c. References ExFreePool(), KernelMode, PAGED_CODE, TRUE, and UserMode. Referenced by IopSetSecurityObjectFromRegistry(), NtOpenObjectAuditAlarm(), NtSetSecurityObject(), NtUserCreateWindowStation(), ObInsertObject(), SeAccessCheckByType(), and SepAccessCheckAndAuditAlarm().
|
|
Definition at line 1320 of file se/capture.c. References ExFreePool(), KernelMode, PAGED_CODE, TRUE, and UserMode. Referenced by NtCreateToken(), NtSecureConnectPort(), NtSetInformationToken(), SeAccessCheckByType(), and SepAccessCheckAndAuditAlarm().
|
|
Definition at line 2297 of file se/capture.c. References ExFreePool(), KernelMode, PAGED_CODE, TRUE, and UserMode. Referenced by NtAdjustGroupsToken(), NtCreateToken(), and NtFilterToken().
|
|
|
Definition at line 60 of file rmmain.c. References ASSERT, ExAllocatePoolWithTag, ExFreePool(), FALSE, _SEP_RM_STATE::LsaInitEventHandle, NT_SUCCESS, NTSTATUS(), NULL, ObjectAttributes, PAGED_CODE, PagedPool, PsCreateSystemThread(), _SEP_RM_STATE::RmCommandPortHandle, RtlAddAccessAllowedAce(), RtlAnsiStringToUnicodeString(), RtlCreateAcl(), RtlCreateSecurityDescriptor(), RtlFreeUnicodeString(), RtlInitString(), SeLengthSid, SeLocalSystemSid, SEP_RM_CONNECT_INFO, SepAdtInitializeAuditingOptions(), SepAdtInitializeCrashOnFail(), SepAdtInitializePrivilegeAuditing(), SepRmCommandServerThread(), SepRmState, _SEP_RM_STATE::SepRmThreadHandle, Status, and TRUE.
|
|
Definition at line 396 of file seastate.c. References _ACCESS_STATE::AuxData, _AUX_ACCESS_DATA::GenericMapping, and PAGED_CODE. Referenced by IopParseDevice().
|
|
Definition at line 78 of file semethod.c. References PAGED_CODE. Referenced by IoCheckFunctionAccess(), and NtSetSecurityObject().
|
|
Definition at line 365 of file semethod.c. References NULL, and RtlpSetSecurityObject(). Referenced by CmpSetSecurityDescriptorInfo(), IopSetDeviceSecurityDescriptors(), and ObSetSecurityDescriptorInfo().
|
|
Definition at line 452 of file semethod.c. References NULL, and RtlpSetSecurityObject().
|
|
|
|
Definition at line 436 of file privileg.c. References KernelMode, NULL, PAGED_CODE, SeCaptureSubjectContext(), SECURITY_SUBJECT_CONTEXT, SePrivilegeCheck(), SePrivilegedServiceAuditAlarm(), and SeReleaseSubjectContext(). Referenced by CmpDoOpen(), CmpRefreshHive(), ExpRaiseHardError(), NtAllocateUserPhysicalPages(), NtCreatePagingFile(), NtCreateProfile(), NtLoadDriver(), NtLoadKey2(), NtLockVirtualMemory(), NtOpenProcess(), NtOpenThread(), NtQuerySystemEnvironmentValue(), NtQuerySystemInformation(), NtReplaceKey(), NtRestoreKey(), NtSaveKey(), NtSaveMergedKeys(), NtSetDefaultHardErrorPort(), NtSetInformationProcess(), NtSetInformationToken(), NtSetSystemEnvironmentValue(), NtSetSystemInformation(), NtSystemDebugControl(), NtUnloadDriver(), NtUnloadKey(), NtUnlockVirtualMemory(), ObCreateObject(), PspSetQuotaLimits(), SepCreateToken(), SepValidOwnerSubjectContext(), and UdfInvalidateVolumes().
|
|
Definition at line 1327 of file token.c. References DbgPrint, FALSE, KernelMode, KPROCESSOR_MODE, NT_SUCCESS, NTSTATUS(), NULL, ObInsertObject(), PAGED_CODE, PrimaryTokenAttributes, PsDereferencePrimaryToken, PsReferencePrimaryToken(), PTOKEN, SepDuplicateToken(), Status, and TRUE. Referenced by PspInitializeProcessSecurity().
|
|
Definition at line 211 of file token.c. References PAGED_CODE, PTOKEN, and Token. Referenced by PsAssignImpersonationToken().
|
|
Definition at line 150 of file token.c. References PAGED_CODE, PTOKEN, Token, and TOKEN_HAS_ADMIN_GROUP. Referenced by NtAssignProcessToJobObject(), NtSetInformationJobObject(), PsAssignImpersonationToken(), and PsImpersonateClient().
|
|
Definition at line 181 of file token.c. References PAGED_CODE, PTOKEN, Token, and TOKEN_IS_RESTRICTED. Referenced by IsRestricted(), PsAssignImpersonationToken(), PsImpersonateClient(), and SepAccessCheck().
|
|
Definition at line 118 of file token.c. References PAGED_CODE, PTOKEN, and Token. Referenced by PsAssignImpersonationToken().
|
|
Definition at line 3429 of file seaudit.c. References _SE_AUDITING_STATE::AuditOnFailure, _SE_AUDITING_STATE::AuditOnSuccess, EffectiveToken, FALSE, KernelMode, NULL, PAGED_CODE, SeAuditingState, SeLockSubjectContext(), SepAdtTraverseAuditAlarm(), SepExamineSacl(), SepTokenAuthenticationId, SepTokenUserSid, and SeUnlockSubjectContext(). Referenced by IopParseDevice().
|
|
Definition at line 159 of file subject.c. References PAGED_CODE, PTOKEN, and SepReleaseTokenReadLock. Referenced by CmpCheckCreateAccess(), CmpCheckNotifyAccess(), IopParseDevice(), IsPrivileged(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObpCheckObjectReference(), ObpCheckTraverseAccess(), RtlpNewSecurityObject(), SeAccessCheck(), SepAccessCheckAndAuditAlarm(), SeQueryAuthenticationIdSubjectContext(), SeTraverseAuditAlarm(), and xxxCreateWindowStation().
|
|
Definition at line 908 of file rmlogon.c. References ExFreePool(), _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION::Next, NTSTATUS(), NULL, PAGED_CODE, SeFileSystemNotifyRoutinesHead, SepRmAcquireDbWriteLock, SepRmReleaseDbWriteLock, and Status.
|
|
|
|
Definition at line 2414 of file se/capture.c. References Dacl, FALSE, LongAligned, RtlValidAcl(), SeLengthSid, and TRUE. Referenced by CmpValidateHiveSecurityDescriptors().
|
|
Definition at line 1636 of file se.h. Referenced by SepVariableInitialization(). |
|
|
Definition at line 1639 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1634 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1635 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1638 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1637 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1633 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1600 of file se.h. Referenced by SeMakeAnonymousLogonToken(), and SepRmDbInitialization(). |
|
Definition at line 1632 of file se.h. Referenced by SeMakeAnonymousLogonToken(), and SepVariableInitialization(). |
|
Definition at line 1645 of file se.h. Referenced by NtImpersonateAnonymousToken(), and SepInitializationPhase1(). |
|
Definition at line 1671 of file se.h. Referenced by NtSetInformationJobObject(), PspSetPrimaryToken(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1702 of file se.h. Referenced by SepRmSetAuditEventWrkr(), and SeTraverseAuditAlarm(). |
|
Definition at line 1689 of file se.h. Referenced by SeCheckAuditPrivilege(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1629 of file se.h. Referenced by SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1685 of file se.h. Referenced by CmpDoOpen(), IopCheckBackupRestorePrivilege(), NtSaveKey(), NtSaveMergedKeys(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1626 of file se.h. Referenced by SepSidTranslation(), and SepVariableInitialization(). |
|
Definition at line 1691 of file se.h. Referenced by SeMakeSystemToken(), SepAdjustPrivileges(), SepCreateToken(), SepRemoveDisabledGroupsAndPrivileges(), and SepVariableInitialization(). |
|
Definition at line 1679 of file se.h. Referenced by NtCreatePagingFile(), NtQuerySystemInformation(), NtSetSystemInformation(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1684 of file se.h. Referenced by ObCreateObject(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1670 of file se.h. Referenced by SeMakeSystemToken(), SepCreateToken(), and SepVariableInitialization(). |
|
Definition at line 1614 of file se.h. Referenced by SepSidTranslation(), and SepVariableInitialization(). |
|
Definition at line 1612 of file se.h. Referenced by SepSidTranslation(), and SepVariableInitialization(). |
|
Definition at line 1613 of file se.h. Referenced by SepSidTranslation(), and SepVariableInitialization(). |
|
Definition at line 1611 of file se.h. Referenced by ObpGetDosDevicesProtection(), SepSidTranslation(), and SepVariableInitialization(). |
|
Definition at line 1688 of file se.h. Referenced by NtOpenProcess(), NtOpenThread(), NtSetSystemInformation(), NtSystemDebugControl(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1709 of file se.h. Referenced by NtDuplicateObject(), ObInitProcess(), PspCreateProcess(), PspProcessDelete(), and SepRmSetAuditEventWrkr(). |
|
Definition at line 1624 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1695 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1590 of file se.h. Referenced by InitSecurity(), SepVariableInitialization(), SmbTraceStart(), xxxConnectService(), and xxxCreateWindowStation(). |
|
Definition at line 1680 of file se.h. Referenced by NtSetInformationJobObject(), NtSetInformationProcess(), NtSetInformationThread(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1673 of file se.h. Referenced by NtSetSystemInformation(), PspSetQuotaLimits(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1627 of file se.h. Referenced by SepSidTranslation(), and SepVariableInitialization(). |
|
Definition at line 1678 of file se.h. Referenced by NtLoadDriver(), NtSetSystemInformation(), NtUnloadDriver(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1610 of file se.h. Referenced by SepSidTranslation(), and SepVariableInitialization(). |
|
|
Definition at line 1672 of file se.h. Referenced by NtAllocateUserPhysicalPages(), NtLockVirtualMemory(), NtUnlockVirtualMemory(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1625 of file se.h. Referenced by SepSidTranslation(), and SepVariableInitialization(). |
|
Definition at line 1622 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1608 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1615 of file se.h. Referenced by SepSidInSidAndAttributes(), SepSidInToken(), SepSidInTokenEx(), and SepVariableInitialization(). |
|
Definition at line 1683 of file se.h. Referenced by SeMakeSystemToken(), and SepVariableInitialization(). |
|
|
Definition at line 1658 of file se.h. Referenced by SepInitSystemDacls(). |
|
Definition at line 1651 of file se.h. Referenced by ExpInitializeCallbacks(), SepInitializationPhase1(), and SepInitSystemDacls(). |
|
Definition at line 1659 of file se.h. Referenced by IopCreateDefaultDeviceSecurityDescriptor(), ObInitSystem(), and SepInitSystemDacls(). |
|
Definition at line 1652 of file se.h. Referenced by IoCreateSymbolicLink(), ObInitSystem(), and SepInitSystemDacls(). |
|
Definition at line 1660 of file se.h. Referenced by SepInitSystemDacls(). |
|
Definition at line 1653 of file se.h. Referenced by SepInitSystemDacls(). |
|
Definition at line 1661 of file se.h. Referenced by IopCreateDefaultDeviceSecurityDescriptor(), and SepInitSystemDacls(). |
|
Definition at line 1654 of file se.h. Referenced by SepInitSystemDacls(). |
|
Definition at line 1692 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1686 of file se.h. Referenced by CmpDoOpen(), IopCheckBackupRestorePrivilege(), NtLoadKey2(), NtReplaceKey(), NtRestoreKey(), NtUnloadKey(), SeMakeSystemToken(), SepValidOwnerSubjectContext(), and SepVariableInitialization(). |
|
Definition at line 1631 of file se.h. Referenced by SepCreateImpersonationTokenDacl(), SepInitSystemDacls(), and SepVariableInitialization(). |
|
Definition at line 1676 of file se.h. Referenced by ObpIncrementHandleCount(), RtlpNewSecurityObject(), SeMakeSystemToken(), SepAccessCheck(), SepInitializePrivilegeSets(), SePrivilegePolicyCheck(), and SepVariableInitialization(). |
|
Definition at line 1687 of file se.h. Referenced by ExpRaiseHardError(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
|
Definition at line 1694 of file se.h. Referenced by SepVariableInitialization(). |
|
Definition at line 1599 of file se.h. Referenced by SeMakeSystemToken(), and SepRmDbInitialization(). |
|
Definition at line 1662 of file se.h. Referenced by SeMakeSystemToken(), and SepInitSystemDacls(). |
|
Definition at line 1655 of file se.h. Referenced by SepInitSystemDacls(). |
|
Definition at line 1690 of file se.h. Referenced by NtQuerySystemEnvironmentValue(), NtSetSystemEnvironmentValue(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1681 of file se.h. Referenced by NtCreateProfile(), and SepVariableInitialization(). |
|
Definition at line 1682 of file se.h. Referenced by NtSetSystemInformation(), SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1602 of file se.h. Referenced by SeMakeAnonymousLogonToken(), and SeMakeSystemToken(). |
|
Definition at line 1677 of file se.h. Referenced by SeMakeSystemToken(), SepAccessCheck(), SepInitializePrivilegeSets(), SePrivilegePolicyCheck(), and SepVariableInitialization(). |
|
Definition at line 1675 of file se.h. Referenced by CmpRefreshHive(), NtSetDefaultHardErrorPort(), NtSetInformationProcess(), NtSetInformationToken(), SeMakeSystemToken(), SepSinglePrivilegeCheck(), and SepVariableInitialization(). |
|
Definition at line 1693 of file se.h. Referenced by SeMakeSystemToken(), and SepVariableInitialization(). |
|
Definition at line 1663 of file se.h. Referenced by SepInitSystemDacls(). |
|
Definition at line 1656 of file se.h. Referenced by SepInitSystemDacls(). |
|
Definition at line 1674 of file se.h. Referenced by SepVariableInitialization(). |
|