ReactOS 0.4.16-dev-401-g45b008d
|
#include <ntoskrnl.h>
#include <debug.h>
Go to the source code of this file.
Macros | |
#define | NDEBUG |
Functions | |
VOID NTAPI | SeCaptureSubjectContextEx (_In_ PETHREAD Thread, _In_ PEPROCESS Process, _Out_ PSECURITY_SUBJECT_CONTEXT SubjectContext) |
An extended function that captures the security subject context based upon the specified thread and process. | |
VOID NTAPI | SeCaptureSubjectContext (_Out_ PSECURITY_SUBJECT_CONTEXT SubjectContext) |
Captures the security subject context of the calling thread and calling process. | |
VOID NTAPI | SeLockSubjectContext (_In_ PSECURITY_SUBJECT_CONTEXT SubjectContext) |
Locks both the referenced primary and client access tokens of a security subject context. | |
VOID NTAPI | SeUnlockSubjectContext (_In_ PSECURITY_SUBJECT_CONTEXT SubjectContext) |
Unlocks both the referenced primary and client access tokens of a security subject context. | |
VOID NTAPI | SeReleaseSubjectContext (_In_ PSECURITY_SUBJECT_CONTEXT SubjectContext) |
Releases both the primary and client tokens of a security subject context. | |
Variables | |
ERESOURCE | SepSubjectContextLock |
VOID NTAPI SeCaptureSubjectContext | ( | _Out_ PSECURITY_SUBJECT_CONTEXT | SubjectContext | ) |
Captures the security subject context of the calling thread and calling process.
[out] | SubjectContext | The returned security subject context. |
Definition at line 85 of file subject.c.
Referenced by create_directory_fcb(), create_subvol(), fcb_get_sd(), FilterToken(), HasPrivilege(), KsCreateDefaultSecurity(), mknod(), nfs41_get_sec_ctx(), nfs41_GetLUID(), nfs41_UpcallCreate(), NtCloseObjectAuditAlarm(), NtOpenObjectAuditAlarm(), NtPrivilegedServiceAuditAlarm(), NtSetUuidSeed(), RxStartMinirdr(), SeCheckPrivilegedObject(), SepAccessCheck(), SepAccessCheckAndAuditAlarm(), SeReportSecurityEvent(), SeSinglePrivilegeCheck(), set_link_information(), set_rename_information(), START_TEST(), SystemThread(), UDFCheckAccessRights(), and UDFSetAccessRights().
VOID NTAPI SeCaptureSubjectContextEx | ( | _In_ PETHREAD | Thread, |
_In_ PEPROCESS | Process, | ||
_Out_ PSECURITY_SUBJECT_CONTEXT | SubjectContext | ||
) |
An extended function that captures the security subject context based upon the specified thread and process.
[in] | Thread | A thread where the calling thread's token is to be referenced for the security context. |
[in] | Process | A process where the main process' token is to be referenced for the security context. |
[out] | SubjectContext | The returned security subject context. |
Definition at line 41 of file subject.c.
Referenced by SeCaptureSubjectContext(), and SeCreateAccessStateEx().
VOID NTAPI SeLockSubjectContext | ( | _In_ PSECURITY_SUBJECT_CONTEXT | SubjectContext | ) |
Locks both the referenced primary and client access tokens of a security subject context.
[in] | SubjectContext | A valid security context with both referenced tokens. |
Definition at line 107 of file subject.c.
Referenced by create_stream(), FatExplicitDeviceAccessGranted(), file_create(), FilterToken(), HasPrivilege(), IopParseDevice(), NpCreateClientEnd(), NpCreateExistingNamedPipe(), NpCreateNewNamedPipe(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObpCheckObjectReference(), ObpCheckTraverseAccess(), open_file2(), SeAccessCheck(), and START_TEST().
VOID NTAPI SeReleaseSubjectContext | ( | _In_ PSECURITY_SUBJECT_CONTEXT | SubjectContext | ) |
Releases both the primary and client tokens of a security subject context.
[in] | SubjectContext | The captured security context. |
Definition at line 171 of file subject.c.
Referenced by FatExplicitDeviceAccessGranted(), FsRtlCancelNotify(), FsRtlNotifyCleanup(), FsRtlNotifyFilterChangeDirectory(), HasPrivilege(), KsCreateDefaultSecurity(), nfs41_get_sec_ctx(), nfs41_GetLUID(), nfs41_UpcallCreate(), NtCloseObjectAuditAlarm(), NtOpenObjectAuditAlarm(), NtPrivilegedServiceAuditAlarm(), NtSetUuidSeed(), RxStartMinirdr(), SeCheckPrivilegedObject(), SeDeleteAccessState(), SepAccessCheck(), SepAccessCheckAndAuditAlarm(), SeReportSecurityEvent(), SeSinglePrivilegeCheck(), set_link_information(), set_rename_information(), SystemThread(), UDFCheckAccessRights(), and UDFSetAccessRights().
VOID NTAPI SeUnlockSubjectContext | ( | _In_ PSECURITY_SUBJECT_CONTEXT | SubjectContext | ) |
Unlocks both the referenced primary and client access tokens of a security subject context.
[in] | SubjectContext | A valid security context with both referenced tokens. |
Definition at line 138 of file subject.c.
Referenced by create_stream(), FatExplicitDeviceAccessGranted(), file_create(), FilterToken(), HasPrivilege(), IopParseDevice(), NpCreateClientEnd(), NpCreateExistingNamedPipe(), NpCreateNewNamedPipe(), ObCheckCreateObjectAccess(), ObCheckObjectAccess(), ObpCheckObjectReference(), ObpCheckTraverseAccess(), open_file2(), SeAccessCheck(), START_TEST(), and TestSeAssignSecurity().
ERESOURCE SepSubjectContextLock |
Definition at line 16 of file subject.c.
Referenced by SepInitializationPhase0().