mirror of
https://github.com/reactos/reactos.git
synced 2024-12-29 10:35:28 +00:00
[NTOS:SE] Unify all the SRM tags in one place
And rename SEP_LOGON_SESSION_TAG and SEP_LOGON_NOTIFICATION_TAG to TAG_LOGON_SESSION and TAG_LOGON_NOTIFICATION respectively.
This commit is contained in:
parent
be3c532bf4
commit
7692c10527
3 changed files with 21 additions and 25 deletions
|
@ -170,26 +170,27 @@
|
||||||
#define TAG_HDTB 'BTDH'
|
#define TAG_HDTB 'BTDH'
|
||||||
|
|
||||||
/* Security Manager Tags */
|
/* Security Manager Tags */
|
||||||
#define TAG_SE ' eS'
|
#define TAG_SE ' eS'
|
||||||
#define TAG_ACL 'cAeS'
|
#define TAG_ACL 'cAeS'
|
||||||
#define TAG_SID 'iSeS'
|
#define TAG_SID 'iSeS'
|
||||||
#define TAG_SD 'dSeS'
|
#define TAG_SD 'dSeS'
|
||||||
#define TAG_QOS 'sQeS'
|
#define TAG_QOS 'sQeS'
|
||||||
#define TAG_LUID 'uLeS'
|
#define TAG_LUID 'uLeS'
|
||||||
#define TAG_PRIVILEGE_SET 'rPeS'
|
#define TAG_SEPA 'aPeS'
|
||||||
#define TAG_TOKEN_DYNAMIC 'dTeS'
|
#define TAG_PRIVILEGE_SET 'rPeS'
|
||||||
#define TAG_SE_HANDLES_TAB 'aHeS'
|
#define TAG_TOKEN_DYNAMIC 'dTeS'
|
||||||
#define TAG_SE_DIR_BUFFER 'bDeS'
|
#define TAG_SE_HANDLES_TAB 'aHeS'
|
||||||
#define TAG_SE_PROXY_DATA 'dPoT'
|
#define TAG_SE_DIR_BUFFER 'bDeS'
|
||||||
#define TAG_SE_TOKEN_LOCK 'lTeS'
|
#define TAG_SE_PROXY_DATA 'dPoT'
|
||||||
|
#define TAG_SE_TOKEN_LOCK 'lTeS'
|
||||||
|
#define TAG_LOGON_SESSION 'sLeS'
|
||||||
|
#define TAG_LOGON_NOTIFICATION 'nLeS'
|
||||||
|
#define TAG_SID_AND_ATTRIBUTES 'aSeS'
|
||||||
|
|
||||||
/* LPC Tags */
|
/* LPC Tags */
|
||||||
#define TAG_LPC_MESSAGE 'McpL'
|
#define TAG_LPC_MESSAGE 'McpL'
|
||||||
#define TAG_LPC_ZONE 'ZcpL'
|
#define TAG_LPC_ZONE 'ZcpL'
|
||||||
|
|
||||||
/* Se Process Audit */
|
|
||||||
#define TAG_SEPA 'aPeS'
|
|
||||||
|
|
||||||
#define TAG_WAIT 'tiaW'
|
#define TAG_WAIT 'tiaW'
|
||||||
#define TAG_SEC_QUERY 'qSbO'
|
#define TAG_SEC_QUERY 'qSbO'
|
||||||
|
|
||||||
|
|
|
@ -13,8 +13,6 @@
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
#define TAG_SID_AND_ATTRIBUTES 'aSeS'
|
|
||||||
|
|
||||||
/* GLOBALS ********************************************************************/
|
/* GLOBALS ********************************************************************/
|
||||||
|
|
||||||
SID_IDENTIFIER_AUTHORITY SeNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY};
|
SID_IDENTIFIER_AUTHORITY SeNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY};
|
||||||
|
|
|
@ -19,9 +19,6 @@ extern LUID SeAnonymousAuthenticationId;
|
||||||
|
|
||||||
/* PRIVATE DEFINITIONS ********************************************************/
|
/* PRIVATE DEFINITIONS ********************************************************/
|
||||||
|
|
||||||
#define SEP_LOGON_SESSION_TAG 'sLeS'
|
|
||||||
#define SEP_LOGON_NOTIFICATION_TAG 'nLeS'
|
|
||||||
|
|
||||||
typedef struct _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION
|
typedef struct _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION
|
||||||
{
|
{
|
||||||
struct _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION *Next;
|
struct _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION *Next;
|
||||||
|
@ -334,7 +331,7 @@ SepRmCreateLogonSession(
|
||||||
/* Allocate a new session structure */
|
/* Allocate a new session structure */
|
||||||
NewSession = ExAllocatePoolWithTag(PagedPool,
|
NewSession = ExAllocatePoolWithTag(PagedPool,
|
||||||
sizeof(SEP_LOGON_SESSION_REFERENCES),
|
sizeof(SEP_LOGON_SESSION_REFERENCES),
|
||||||
SEP_LOGON_SESSION_TAG);
|
TAG_LOGON_SESSION);
|
||||||
if (NewSession == NULL)
|
if (NewSession == NULL)
|
||||||
{
|
{
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
@ -375,7 +372,7 @@ Leave:
|
||||||
|
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
ExFreePoolWithTag(NewSession, SEP_LOGON_SESSION_TAG);
|
ExFreePoolWithTag(NewSession, TAG_LOGON_SESSION);
|
||||||
}
|
}
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
@ -482,7 +479,7 @@ SepRmDeleteLogonSession(
|
||||||
/* If we're here then we've deleted the logon session successfully */
|
/* If we're here then we've deleted the logon session successfully */
|
||||||
DPRINT("SepRmDeleteLogonSession(): Logon session deleted with success!\n");
|
DPRINT("SepRmDeleteLogonSession(): Logon session deleted with success!\n");
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
ExFreePoolWithTag(SessionToDelete, SEP_LOGON_SESSION_TAG);
|
ExFreePoolWithTag(SessionToDelete, TAG_LOGON_SESSION);
|
||||||
|
|
||||||
Leave:
|
Leave:
|
||||||
/* Release the database lock */
|
/* Release the database lock */
|
||||||
|
@ -1307,7 +1304,7 @@ SeRegisterLogonSessionTerminatedRoutine(
|
||||||
/* Allocate a new notification item */
|
/* Allocate a new notification item */
|
||||||
Notification = ExAllocatePoolWithTag(PagedPool,
|
Notification = ExAllocatePoolWithTag(PagedPool,
|
||||||
sizeof(SEP_LOGON_SESSION_TERMINATED_NOTIFICATION),
|
sizeof(SEP_LOGON_SESSION_TERMINATED_NOTIFICATION),
|
||||||
SEP_LOGON_NOTIFICATION_TAG);
|
TAG_LOGON_NOTIFICATION);
|
||||||
if (Notification == NULL)
|
if (Notification == NULL)
|
||||||
return STATUS_INSUFFICIENT_RESOURCES;
|
return STATUS_INSUFFICIENT_RESOURCES;
|
||||||
|
|
||||||
|
@ -1373,7 +1370,7 @@ SeUnregisterLogonSessionTerminatedRoutine(
|
||||||
|
|
||||||
/* Free the current notification item */
|
/* Free the current notification item */
|
||||||
ExFreePoolWithTag(Current,
|
ExFreePoolWithTag(Current,
|
||||||
SEP_LOGON_NOTIFICATION_TAG);
|
TAG_LOGON_NOTIFICATION);
|
||||||
|
|
||||||
Status = STATUS_SUCCESS;
|
Status = STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue