mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +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'
|
||||
|
||||
/* Security Manager Tags */
|
||||
#define TAG_SE ' eS'
|
||||
#define TAG_ACL 'cAeS'
|
||||
#define TAG_SID 'iSeS'
|
||||
#define TAG_SD 'dSeS'
|
||||
#define TAG_QOS 'sQeS'
|
||||
#define TAG_LUID 'uLeS'
|
||||
#define TAG_PRIVILEGE_SET 'rPeS'
|
||||
#define TAG_TOKEN_DYNAMIC 'dTeS'
|
||||
#define TAG_SE_HANDLES_TAB 'aHeS'
|
||||
#define TAG_SE_DIR_BUFFER 'bDeS'
|
||||
#define TAG_SE_PROXY_DATA 'dPoT'
|
||||
#define TAG_SE_TOKEN_LOCK 'lTeS'
|
||||
#define TAG_SE ' eS'
|
||||
#define TAG_ACL 'cAeS'
|
||||
#define TAG_SID 'iSeS'
|
||||
#define TAG_SD 'dSeS'
|
||||
#define TAG_QOS 'sQeS'
|
||||
#define TAG_LUID 'uLeS'
|
||||
#define TAG_SEPA 'aPeS'
|
||||
#define TAG_PRIVILEGE_SET 'rPeS'
|
||||
#define TAG_TOKEN_DYNAMIC 'dTeS'
|
||||
#define TAG_SE_HANDLES_TAB 'aHeS'
|
||||
#define TAG_SE_DIR_BUFFER 'bDeS'
|
||||
#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 */
|
||||
#define TAG_LPC_MESSAGE 'McpL'
|
||||
#define TAG_LPC_ZONE 'ZcpL'
|
||||
|
||||
/* Se Process Audit */
|
||||
#define TAG_SEPA 'aPeS'
|
||||
|
||||
#define TAG_WAIT 'tiaW'
|
||||
#define TAG_SEC_QUERY 'qSbO'
|
||||
|
||||
|
|
|
@ -13,8 +13,6 @@
|
|||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
#define TAG_SID_AND_ATTRIBUTES 'aSeS'
|
||||
|
||||
/* GLOBALS ********************************************************************/
|
||||
|
||||
SID_IDENTIFIER_AUTHORITY SeNullSidAuthority = {SECURITY_NULL_SID_AUTHORITY};
|
||||
|
|
|
@ -19,9 +19,6 @@ extern LUID SeAnonymousAuthenticationId;
|
|||
|
||||
/* PRIVATE DEFINITIONS ********************************************************/
|
||||
|
||||
#define SEP_LOGON_SESSION_TAG 'sLeS'
|
||||
#define SEP_LOGON_NOTIFICATION_TAG 'nLeS'
|
||||
|
||||
typedef struct _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION
|
||||
{
|
||||
struct _SEP_LOGON_SESSION_TERMINATED_NOTIFICATION *Next;
|
||||
|
@ -334,7 +331,7 @@ SepRmCreateLogonSession(
|
|||
/* Allocate a new session structure */
|
||||
NewSession = ExAllocatePoolWithTag(PagedPool,
|
||||
sizeof(SEP_LOGON_SESSION_REFERENCES),
|
||||
SEP_LOGON_SESSION_TAG);
|
||||
TAG_LOGON_SESSION);
|
||||
if (NewSession == NULL)
|
||||
{
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
@ -375,7 +372,7 @@ Leave:
|
|||
|
||||
if (!NT_SUCCESS(Status))
|
||||
{
|
||||
ExFreePoolWithTag(NewSession, SEP_LOGON_SESSION_TAG);
|
||||
ExFreePoolWithTag(NewSession, TAG_LOGON_SESSION);
|
||||
}
|
||||
|
||||
return Status;
|
||||
|
@ -482,7 +479,7 @@ SepRmDeleteLogonSession(
|
|||
/* If we're here then we've deleted the logon session successfully */
|
||||
DPRINT("SepRmDeleteLogonSession(): Logon session deleted with success!\n");
|
||||
Status = STATUS_SUCCESS;
|
||||
ExFreePoolWithTag(SessionToDelete, SEP_LOGON_SESSION_TAG);
|
||||
ExFreePoolWithTag(SessionToDelete, TAG_LOGON_SESSION);
|
||||
|
||||
Leave:
|
||||
/* Release the database lock */
|
||||
|
@ -1307,7 +1304,7 @@ SeRegisterLogonSessionTerminatedRoutine(
|
|||
/* Allocate a new notification item */
|
||||
Notification = ExAllocatePoolWithTag(PagedPool,
|
||||
sizeof(SEP_LOGON_SESSION_TERMINATED_NOTIFICATION),
|
||||
SEP_LOGON_NOTIFICATION_TAG);
|
||||
TAG_LOGON_NOTIFICATION);
|
||||
if (Notification == NULL)
|
||||
return STATUS_INSUFFICIENT_RESOURCES;
|
||||
|
||||
|
@ -1373,7 +1370,7 @@ SeUnregisterLogonSessionTerminatedRoutine(
|
|||
|
||||
/* Free the current notification item */
|
||||
ExFreePoolWithTag(Current,
|
||||
SEP_LOGON_NOTIFICATION_TAG);
|
||||
TAG_LOGON_NOTIFICATION);
|
||||
|
||||
Status = STATUS_SUCCESS;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue