ReactOS 0.4.16-dev-433-g6363f78
|
#include <win32k.h>
Go to the source code of this file.
Functions | |
DBG_DEFAULT_CHANNEL (UserSecurity) | |
HANDLE | IntGetCurrentAccessToken (VOID) |
Opens an access token that represents the effective security context of the caller. The purpose of this function is to query the authenticated user that is associated with the security context. | |
PVOID | IntAllocateSecurityBuffer (_In_ SIZE_T Length) |
Allocates a buffer within UM (user mode) address space area. Such buffer is reserved for security purposes, such as allocating a buffer for a DACL or a security descriptor. | |
VOID | IntFreeSecurityBuffer (_In_ PVOID Buffer) |
Frees an allocated security buffer from UM memory that is been previously allocated by IntAllocateSecurityBuffer function. | |
NTSTATUS | IntQueryUserSecurityIdentification (_Out_ PTOKEN_USER *User) |
Queries the authenticated user security identifier (SID) that is associated with the security context of the access token that is being opened. | |
NTSTATUS NTAPI | IntAssignDesktopSecurityOnParse (_In_ PWINSTATION_OBJECT WinSta, _In_ PDESKTOP Desktop, _In_ PACCESS_STATE AccessState) |
Assigns a security descriptor to the desktop object during a desktop object parse procedure. | |
NTSTATUS NTAPI | IntCreateServiceSecurity (_Out_ PSECURITY_DESCRIPTOR *ServiceSd) |
Creates a security descriptor for the service. | |
DBG_DEFAULT_CHANNEL | ( | UserSecurity | ) |
Allocates a buffer within UM (user mode) address space area. Such buffer is reserved for security purposes, such as allocating a buffer for a DACL or a security descriptor.
[in] | Length | The length of the buffer that has to be allocated, in bytes. |
Definition at line 97 of file security.c.
Referenced by IntCreateServiceSecurity(), and IntQueryUserSecurityIdentification().
NTSTATUS NTAPI IntAssignDesktopSecurityOnParse | ( | _In_ PWINSTATION_OBJECT | WinSta, |
_In_ PDESKTOP | Desktop, | ||
_In_ PACCESS_STATE | AccessState | ||
) |
Assigns a security descriptor to the desktop object during a desktop object parse procedure.
[in] | WinSta | A pointer to a window station object, of which such object contains its own security descriptor that will be captured. |
[in] | Desktop | A pointer to a desktop object that is created during a parse procedure. |
[in] | AccessState | A pointer to an access state structure that describes the progress state of an access in action. |
Definition at line 270 of file security.c.
Referenced by IntDesktopObjectParse().
NTSTATUS NTAPI IntCreateServiceSecurity | ( | _Out_ PSECURITY_DESCRIPTOR * | ServiceSd | ) |
Creates a security descriptor for the service.
[out] | ServiceSd | A pointer to a newly allocated and created security descriptor for the service. |
Definition at line 327 of file security.c.
Referenced by IntResolveDesktop().
Frees an allocated security buffer from UM memory that is been previously allocated by IntAllocateSecurityBuffer function.
[in] | Buffer | A pointer to a buffer whose contents are arbitrary, to be freed from UM memory space. |
Definition at line 133 of file security.c.
Referenced by IntCreateServiceSecurity(), IntQueryUserSecurityIdentification(), and IntResolveDesktop().
Opens an access token that represents the effective security context of the caller. The purpose of this function is to query the authenticated user that is associated with the security context.
Definition at line 27 of file security.c.
Referenced by IntQueryUserSecurityIdentification().
NTSTATUS IntQueryUserSecurityIdentification | ( | _Out_ PTOKEN_USER * | User | ) |
Queries the authenticated user security identifier (SID) that is associated with the security context of the access token that is being opened.
[out] | User | A pointer to the token user that contains the security identifier of the authenticated user. |
Definition at line 169 of file security.c.
Referenced by IntCreateServiceSecurity().