|
ReactOS 0.4.16-dev-1946-g52006dd
|
#include <ntoskrnl.h>#include <debug.h>
Go to the source code of this file.
Macros | |
| #define | NDEBUG |
| NTSTATUS NTAPI SeCreateClientSecurity | ( | _In_ PETHREAD | Thread, |
| _In_ PSECURITY_QUALITY_OF_SERVICE | Qos, | ||
| _In_ BOOLEAN | RemoteClient, | ||
| _Out_ PSECURITY_CLIENT_CONTEXT | ClientContext | ||
| ) |
Creates a client security context.
| [in] | Thread | Thread object of the client where impersonation has to begin. |
| [in] | Qos | Quality of service to specify what kind of impersonation to be done. |
| [in] | RemoteClient | If set to TRUE, the client that we're going to impersonate is remote. |
| [out] | ClientContext | The returned security client context. |
Definition at line 162 of file client.c.
| NTSTATUS NTAPI SeCreateClientSecurityFromSubjectContext | ( | _In_ PSECURITY_SUBJECT_CONTEXT | SubjectContext, |
| _In_ PSECURITY_QUALITY_OF_SERVICE | ClientSecurityQos, | ||
| _In_ BOOLEAN | ServerIsRemote, | ||
| _Out_ PSECURITY_CLIENT_CONTEXT | ClientContext | ||
| ) |
Creates a client security context based upon the captured security subject context.
| [in] | SubjectContext | The captured subject context where client security is to be created from. |
| [in] | ClientSecurityQos | Quality of service to specify what kind of impersonation to be done. |
| [in] | ServerIsRemote | If set to TRUE, the client that we're going to impersonate is remote. |
| [out] | ClientContext | The returned security client context. |
Definition at line 224 of file client.c.
Referenced by nfs41_get_sec_ctx(), nfs41_GetLUID(), and nfs41_UpcallCreate().
| VOID NTAPI SeImpersonateClient | ( | _In_ PSECURITY_CLIENT_CONTEXT | ClientContext, |
| _In_opt_ PETHREAD | ServerThread | ||
| ) |
Impersonates a client user.
| [in] | ClientContext | A valid client context. |
| [in] | ServerThread | The thread where impersonation is to be done. |
Definition at line 321 of file client.c.
| NTSTATUS NTAPI SeImpersonateClientEx | ( | _In_ PSECURITY_CLIENT_CONTEXT | ClientContext, |
| _In_opt_ PETHREAD | ServerThread | ||
| ) |
Extended function that impersonates a client.
| [in] | ClientContext | A valid client context. |
| [in] | ServerThread | The thread where impersonation is to be done. |
Definition at line 276 of file client.c.
Referenced by CmpCmdHiveOpen(), handle_upcall(), NpImpersonateClientContext(), NtImpersonateClientOfPort(), and SeImpersonateClient().
| NTSTATUS NTAPI SepCreateClientSecurity | ( | _In_ PACCESS_TOKEN | Token, |
| _In_ PSECURITY_QUALITY_OF_SERVICE | ClientSecurityQos, | ||
| _In_ BOOLEAN | ServerIsRemote, | ||
| _In_ TOKEN_TYPE | TokenType, | ||
| _In_ BOOLEAN | ThreadEffectiveOnly, | ||
| _In_ SECURITY_IMPERSONATION_LEVEL | ImpersonationLevel, | ||
| _Out_ PSECURITY_CLIENT_CONTEXT | ClientContext | ||
| ) |
Creates a client security context based upon an access token.
| [in] | Token | A valid token object. |
| [in] | ClientSecurityQos | The Quality of Service (QoS) of a client security context. |
| [in] | ServerIsRemote | If the client is a remote server (TRUE), the function will retrieve the control information of an access token, that is, we're doing delegation and that the server isn't local. |
| [in] | TokenType | Type of token. |
| [in] | ThreadEffectiveOnly | If set to TRUE, the client wants that the current thread wants to modify (enable or disable) privileges and groups. |
| [in] | ImpersonationLevel | Security impersonation level filled in the QoS context. |
| [out] | ClientContext | The returned security client context. |
Definition at line 53 of file client.c.
Referenced by SeCreateClientSecurity(), and SeCreateClientSecurityFromSubjectContext().