#include "psp.h"
Go to the source code of this file.
Functions | |
PACCESS_TOKEN | PsReferencePrimaryToken (IN PEPROCESS Process) |
PACCESS_TOKEN | PsReferenceImpersonationToken (IN PETHREAD Thread, OUT PBOOLEAN CopyOnOpen, OUT PBOOLEAN EffectiveOnly, OUT PSECURITY_IMPERSONATION_LEVEL ImpersonationLevel) |
PACCESS_TOKEN | PsReferenceEffectiveToken (IN PETHREAD Thread, OUT PTOKEN_TYPE TokenType, OUT PBOOLEAN EffectiveOnly, OUT PSECURITY_IMPERSONATION_LEVEL ImpersonationLevel) |
NTSTATUS | PsOpenTokenOfThread (IN HANDLE ThreadHandle, IN BOOLEAN OpenAsSelf, OUT PACCESS_TOKEN *Token, OUT PBOOLEAN CopyOnOpen, OUT PBOOLEAN EffectiveOnly, OUT PSECURITY_IMPERSONATION_LEVEL ImpersonationLevel) |
NTSTATUS | PsOpenTokenOfProcess (IN HANDLE ProcessHandle, OUT PACCESS_TOKEN *Token) |
NTSTATUS | PsOpenTokenOfJobObject (IN HANDLE JobObject, OUT PACCESS_TOKEN *Token) |
NTSTATUS | PsImpersonateClient (IN PETHREAD Thread, IN PACCESS_TOKEN Token, IN BOOLEAN CopyOnOpen, IN BOOLEAN EffectiveOnly, IN SECURITY_IMPERSONATION_LEVEL ImpersonationLevel) |
BOOLEAN | PsDisableImpersonation (IN PETHREAD Thread, IN PSE_IMPERSONATION_STATE ImpersonationState) |
VOID | PsRestoreImpersonation (IN PETHREAD Thread, IN PSE_IMPERSONATION_STATE ImpersonationState) |
VOID | PsRevertToSelf () |
NTSTATUS | PspInitializeProcessSecurity (IN PEPROCESS Parent OPTIONAL, IN PEPROCESS Child) |
VOID | PspDeleteProcessSecurity (IN PEPROCESS Process) |
NTSTATUS | PspAssignPrimaryToken (IN PEPROCESS Process, IN HANDLE Token OPTIONAL, IN PACCESS_TOKEN TokenPointer OPTIONAL) |
VOID | PspInitializeThreadSecurity (IN PEPROCESS Process, IN PETHREAD Thread) |
VOID | PspDeleteThreadSecurity (IN PETHREAD Thread) |
NTSTATUS | PsAssignImpersonationToken (IN PETHREAD Thread, IN HANDLE Token) |
|
Definition at line 1483 of file ps/security.c. References FALSE, Filter, IS_SYSTEM_THREAD, KeAttachProcess(), KeDetachProcess(), KPROCESSOR_MODE, NT_SUCCESS, NTSTATUS(), NULL, ObDereferenceObject, ObReferenceObjectByHandle(), _EPROCESS::Pcb, PsGetCurrentProcess, PsImpersonateClient(), SeFastFilterToken(), SeTokenImpersonationLevel(), SeTokenIsAdmin(), SeTokenIsRestricted(), SeTokenObjectType, SeTokenType(), Status, THREAD_TO_PROCESS, Token, and TRUE. Referenced by NtSetInformationThread().
|
|
Definition at line 888 of file ps/security.c. References ASSERT, _PS_IMPERSONATION_INFORMATION::CopyOnOpen, _PS_IMPERSONATION_INFORMATION::EffectiveOnly, FALSE, _PS_IMPERSONATION_INFORMATION::ImpersonationLevel, NULL, PsFreeProcessSecurityFields, PsLockProcessSecurityFields, ThreadObject, _PS_IMPERSONATION_INFORMATION::Token, and TRUE. Referenced by NtOpenThreadToken(), PsOpenTokenOfThread(), and SepOpenTokenOfThread().
|
|
Definition at line 650 of file ps/security.c. References ASSERT, _PS_IMPERSONATION_INFORMATION::CopyOnOpen, _PS_IMPERSONATION_INFORMATION::EffectiveOnly, ExAllocatePoolWithTag, FALSE, Filter, _PS_IMPERSONATION_INFORMATION::ImpersonationLevel, KernelMode, NT_SUCCESS, NTSTATUS(), NULL, ObReferenceObject, PagedPool, PsDereferenceImpersonationToken, PsFreeProcessSecurityFields, PsLockProcessSecurityFields, SeFastFilterToken(), SeTokenIsAdmin(), SeTokenIsRestricted(), Status, ThreadObject, _PS_IMPERSONATION_INFORMATION::Token, Token, and TRUE. Referenced by NtImpersonateAnonymousToken(), NtOpenThreadToken(), PsAssignImpersonationToken(), PsRestoreImpersonation(), and SeImpersonateClientEx().
|
|
Definition at line 586 of file ps/security.c. References KPROCESSOR_MODE, NT_SUCCESS, NTSTATUS(), NULL, ObReferenceObject, ObReferenceObjectByHandle(), PsJobType, Status, Token, and _EJOB::Token.
|
|
Definition at line 492 of file ps/security.c. References KPROCESSOR_MODE, NT_SUCCESS, NTSTATUS(), NULL, ObDereferenceObject, ObReferenceObjectByHandle(), PsProcessType, PsReferencePrimaryToken(), and Status. Referenced by NtOpenProcessToken().
|
|
Definition at line 326 of file ps/security.c. References FALSE, KPROCESSOR_MODE, NT_SUCCESS, NTSTATUS(), NULL, ObDereferenceObject, ObReferenceObjectByHandle(), PsDereferenceImpersonationToken, PsDisableImpersonation(), PsGetCurrentThread, PsReferenceImpersonationToken(), PsRestoreImpersonation(), PsThreadType, Status, ThreadHandle, and Token.
|
|
Definition at line 1256 of file ps/security.c. References KPROCESSOR_MODE, NT_SUCCESS, NTSTATUS(), NULL, ObDereferenceObject, ObReferenceObjectByHandle(), PsFreeProcessSecurityFields, PsLockProcessSecurityFields, SeExchangePrimaryToken(), SeTokenObjectType, Status, and Token. Referenced by PspSetPrimaryToken().
|
|
Definition at line 1206 of file ps/security.c. References NULL, and SeDeassignPrimaryToken(). Referenced by PspCreateProcess(), and PspProcessDelete().
|
|
Definition at line 1436 of file ps/security.c. References ExFreePool(), FALSE, NULL, and ObDereferenceObject. Referenced by PspThreadDelete().
|
|
Definition at line 1117 of file ps/security.c. References NT_SUCCESS, NTSTATUS(), NULL, PspBootAccessToken, SeAssignPrimaryToken(), SeSubProcessToken(), and Status. Referenced by PspCreateProcess().
|
|
Definition at line 1395 of file ps/security.c. Referenced by PspCreateThread().
|
|
Definition at line 208 of file ps/security.c. References ASSERT, FALSE, ObReferenceObject, PsFreeProcessSecurityFields, PsLockProcessSecurityFields, THREAD_TO_PROCESS, ThreadObject, and Token. Referenced by SeCreateClientSecurity().
|
|
Definition at line 97 of file ps/security.c. References ASSERT, NULL, ObReferenceObject, PsFreeProcessSecurityFields, PsLockProcessSecurityFields, ThreadObject, and Token. Referenced by GetProcessLuid(), IsRestricted(), PsOpenTokenOfThread(), SeCaptureSubjectContext(), and SepOpenTokenOfThread().
|
|
Definition at line 28 of file ps/security.c. References ASSERT, ObReferenceObject, ProcessObject, PsFreeProcessSecurityFields, PsLockProcessSecurityFields, and Token. Referenced by CheckAllowForeground(), GetProcessLuid(), IsRestricted(), NtOpenThreadToken(), NtSecureConnectPort(), NtSetInformationProcess(), PsOpenTokenOfProcess(), PspCreateProcess(), PspCreateThread(), PspSetPrimaryToken(), SeCaptureSubjectContext(), SeIsChildToken(), SeIsChildTokenByPointer(), and SeSubProcessToken().
|
|
Definition at line 990 of file ps/security.c. References ObDereferenceObject, and PsImpersonateClient(). Referenced by NtOpenThreadToken(), PsOpenTokenOfThread(), and SepOpenTokenOfThread().
|
|
Definition at line 1051 of file ps/security.c. References _ETHREAD::ActiveImpersonationInfo, FALSE, _ETHREAD::ImpersonationInfo, NULL, ObDereferenceObject, PsFreeProcessSecurityFields, PsGetCurrentThread, PsLockProcessSecurityFields, and _PS_IMPERSONATION_INFORMATION::Token. Referenced by CmpWorker().
|