ReactOS  0.4.14-dev-49-gfb4591c
cmse.c File Reference
#include "ntoskrnl.h"
#include "debug.h"
Include dependency graph for cmse.c:

Go to the source code of this file.

Macros

#define NDEBUG
 

Functions

PSECURITY_DESCRIPTOR NTAPI CmpHiveRootSecurityDescriptor (VOID)
 
NTSTATUS CmpQuerySecurityDescriptor (IN PCM_KEY_CONTROL_BLOCK Kcb, IN SECURITY_INFORMATION SecurityInformation, OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG BufferLength)
 
NTSTATUS CmpSetSecurityDescriptor (IN PCM_KEY_CONTROL_BLOCK Kcb, IN PSECURITY_INFORMATION SecurityInformation, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping)
 
NTSTATUS CmpAssignSecurityDescriptor (IN PCM_KEY_CONTROL_BLOCK Kcb, IN PSECURITY_DESCRIPTOR SecurityDescriptor)
 
NTSTATUS NTAPI CmpSecurityMethod (IN PVOID ObjectBody, IN SECURITY_OPERATION_CODE OperationCode, IN PSECURITY_INFORMATION SecurityInformation, IN OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG BufferLength, IN OUT PSECURITY_DESCRIPTOR *OldSecurityDescriptor, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping)
 

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 12 of file cmse.c.

Function Documentation

◆ CmpAssignSecurityDescriptor()

NTSTATUS CmpAssignSecurityDescriptor ( IN PCM_KEY_CONTROL_BLOCK  Kcb,
IN PSECURITY_DESCRIPTOR  SecurityDescriptor 
)

Definition at line 252 of file cmse.c.

254 {
255  DPRINT("CmpAssignSecurityDescriptor(%p %p)\n",
256  Kcb, SecurityDescriptor);
257  return STATUS_SUCCESS;
258 }
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:182
void DPRINT(...)
Definition: polytest.cpp:61
return STATUS_SUCCESS
Definition: btrfs.c:2966

Referenced by CmpSecurityMethod().

◆ CmpHiveRootSecurityDescriptor()

PSECURITY_DESCRIPTOR NTAPI CmpHiveRootSecurityDescriptor ( VOID  )

Definition at line 22 of file cmse.c.

23 {
26  PACL Acl, AclCopy;
27  PSID Sid[4];
30  ULONG AceLength, AclLength, SidLength;
31  PACE_HEADER AceHeader;
32  ULONG i;
33  PAGED_CODE();
34 
35  /* Phase 1: Allocate SIDs */
36  SidLength = RtlLengthRequiredSid(1);
37  Sid[0] = ExAllocatePoolWithTag(PagedPool, SidLength, TAG_CMSD);
38  Sid[1] = ExAllocatePoolWithTag(PagedPool, SidLength, TAG_CMSD);
39  Sid[2] = ExAllocatePoolWithTag(PagedPool, SidLength, TAG_CMSD);
40  SidLength = RtlLengthRequiredSid(2);
41  Sid[3] = ExAllocatePoolWithTag(PagedPool, SidLength, TAG_CMSD);
42 
43  /* Make sure all SIDs were allocated */
44  if (!(Sid[0]) || !(Sid[1]) || !(Sid[2]) || !(Sid[3]))
45  {
46  /* Bugcheck */
47  KeBugCheckEx(REGISTRY_ERROR, 11, 1, 0, 0);
48  }
49 
50  /* Phase 2: Initialize all SIDs */
55  if (!NT_SUCCESS(Status)) KeBugCheckEx(REGISTRY_ERROR, 11, 2, 0, 0);
56 
57  /* Phase 2: Setup SID Sub Authorities */
63 
64  /* Make sure all SIDs are valid */
65  ASSERT(RtlValidSid(Sid[0]));
66  ASSERT(RtlValidSid(Sid[1]));
67  ASSERT(RtlValidSid(Sid[2]));
68  ASSERT(RtlValidSid(Sid[3]));
69 
70  /* Phase 3: Calculate ACL Length */
71  AclLength = sizeof(ACL);
72  for (i = 0; i < 4; i++)
73  {
74  /* This is what MSDN says to do */
75  AceLength = FIELD_OFFSET(ACCESS_ALLOWED_ACE, SidStart);
76  AceLength += SeLengthSid(Sid[i]);
77  AclLength += AceLength;
78  }
79 
80  /* Phase 3: Allocate the ACL */
82  if (!Acl) KeBugCheckEx(REGISTRY_ERROR, 11, 3, 0, 0);
83 
84  /* Phase 4: Create the ACL */
86  if (!NT_SUCCESS(Status)) KeBugCheckEx(REGISTRY_ERROR, 11, 4, Status, 0);
87 
88  /* Phase 5: Build the ACL */
93  if (!NT_SUCCESS(Status)) KeBugCheckEx(REGISTRY_ERROR, 11, 5, Status, 0);
94 
95  /* Phase 5: Make the ACEs inheritable */
96  Status = RtlGetAce(Acl, 0, (PVOID*)&AceHeader);
98  AceHeader->AceFlags |= CONTAINER_INHERIT_ACE;
99  Status = RtlGetAce(Acl, 1, (PVOID*)&AceHeader);
101  AceHeader->AceFlags |= CONTAINER_INHERIT_ACE;
102  Status = RtlGetAce(Acl, 2, (PVOID*)&AceHeader);
104  AceHeader->AceFlags |= CONTAINER_INHERIT_ACE;
105  Status = RtlGetAce(Acl, 3, (PVOID*)&AceHeader);
107  AceHeader->AceFlags |= CONTAINER_INHERIT_ACE;
108 
109  /* Phase 6: Allocate the security descriptor and make space for the ACL */
111  sizeof(SECURITY_DESCRIPTOR) +
112  AclLength,
113  TAG_CMSD);
114  if (!SecurityDescriptor) KeBugCheckEx(REGISTRY_ERROR, 11, 6, 0, 0);
115 
116  /* Phase 6: Make a copy of the ACL */
118  RtlCopyMemory(AclCopy, Acl, AclLength);
119 
120  /* Phase 7: Create the security descriptor */
123  if (!NT_SUCCESS(Status)) KeBugCheckEx(REGISTRY_ERROR, 11, 7, Status, 0);
124 
125  /* Phase 8: Set the ACL as a DACL */
127  TRUE,
128  AclCopy,
129  FALSE);
130  if (!NT_SUCCESS(Status)) KeBugCheckEx(REGISTRY_ERROR, 11, 8, Status, 0);
131 
132  /* Free the SIDs and original ACL */
133  for (i = 0; i < 4; i++) ExFreePoolWithTag(Sid[i], TAG_CMSD);
135 
136  /* Return the security descriptor */
137  return SecurityDescriptor;
138 }
#define SECURITY_LOCAL_SYSTEM_RID
Definition: setypes.h:546
UCHAR AceFlags
Definition: ms-dtyp.idl:211
#define TRUE
Definition: types.h:120
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
#define KEY_READ
Definition: nt_native.h:1023
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:182
LONG NTSTATUS
Definition: precomp.h:26
static SID_IDENTIFIER_AUTHORITY WorldAuthority
Definition: security.c:14
NTSYSAPI PULONG NTAPI RtlSubAuthoritySid(_In_ PSID Sid, _In_ ULONG SubAuthority)
NTSYSAPI NTSTATUS NTAPI RtlGetAce(PACL Acl, ULONG AceIndex, PVOID *Ace)
NTSYSAPI NTSTATUS NTAPI RtlCreateSecurityDescriptor(_Out_ PSECURITY_DESCRIPTOR SecurityDescriptor, _In_ ULONG Revision)
NTSYSAPI NTSTATUS WINAPI RtlAddAccessAllowedAce(PACL, DWORD, DWORD, PSID)
#define PAGED_CODE()
Definition: video.h:57
NTSYSAPI NTSTATUS NTAPI RtlCreateAcl(PACL Acl, ULONG AclSize, ULONG AclRevision)
#define SECURITY_DESCRIPTOR_REVISION
Definition: setypes.h:58
NTSYSAPI NTSTATUS NTAPI RtlInitializeSid(IN OUT PSID Sid, IN PSID_IDENTIFIER_AUTHORITY IdentifierAuthority, IN UCHAR SubAuthorityCount)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
struct _ACL ACL
NTSYSAPI NTSTATUS WINAPI RtlSetDaclSecurityDescriptor(PSECURITY_DESCRIPTOR, BOOLEAN, PACL, BOOLEAN)
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Definition: rtlfuncs.h:1104
NTSYSAPI BOOLEAN NTAPI RtlValidSid(IN PSID Sid)
Definition: sid.c:21
#define SECURITY_NT_AUTHORITY
Definition: setypes.h:526
struct _ACL * PACL
Definition: security.c:104
#define CONTAINER_INHERIT_ACE
Definition: setypes.h:715
#define SECURITY_BUILTIN_DOMAIN_RID
Definition: setypes.h:553
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define SECURITY_WORLD_SID_AUTHORITY
Definition: setypes.h:499
#define SECURITY_WORLD_RID
Definition: setypes.h:513
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
#define ExAllocatePoolWithTag(hernya, size, tag)
Definition: env_spec_w32.h:350
Status
Definition: gdiplustypes.h:24
#define KEY_ALL_ACCESS
Definition: nt_native.h:1041
#define FIELD_OFFSET(t, f)
Definition: typedefs.h:254
#define SECURITY_RESTRICTED_CODE_RID
Definition: setypes.h:541
#define TAG_CMSD
Definition: cmlib.h:206
#define ACL_REVISION
Definition: setypes.h:39
unsigned int ULONG
Definition: retypes.h:1
#define ExFreePoolWithTag(_P, _T)
Definition: module.h:1099
#define SeLengthSid(Sid)
Definition: sefuncs.h:570
#define DOMAIN_ALIAS_RID_ADMINS
Definition: setypes.h:624
_In_ ULONG AclLength
Definition: rtlfuncs.h:1844
VOID NTAPI KeBugCheckEx(_In_ ULONG BugCheckCode, _In_ ULONG_PTR BugCheckParameter1, _In_ ULONG_PTR BugCheckParameter2, _In_ ULONG_PTR BugCheckParameter3, _In_ ULONG_PTR BugCheckParameter4)
Definition: rtlcompat.c:107
SID_IDENTIFIER_AUTHORITY NtAuthority
Definition: database.c:19
NTSYSAPI ULONG NTAPI RtlLengthRequiredSid(IN ULONG SubAuthorityCount)
Definition: sid.c:54

Referenced by CmInitSystem1(), CmpCreateRegistryRoot(), CmpInitializeHiveList(), and CmpInitializeSystemHive().

◆ CmpQuerySecurityDescriptor()

NTSTATUS CmpQuerySecurityDescriptor ( IN PCM_KEY_CONTROL_BLOCK  Kcb,
IN SECURITY_INFORMATION  SecurityInformation,
OUT PSECURITY_DESCRIPTOR  SecurityDescriptor,
IN OUT PULONG  BufferLength 
)

Definition at line 141 of file cmse.c.

145 {
147  ULONG SidSize;
148  ULONG AclSize;
149  ULONG SdSize;
152  ULONG Owner = 0;
153  ULONG Group = 0;
154  ULONG Dacl = 0;
155 
157 
158  DPRINT("CmpQuerySecurityDescriptor()\n");
159 
160  if (SecurityInformation == 0)
161  {
162  return STATUS_ACCESS_DENIED;
163  }
164 
165  SidSize = RtlLengthSid(SeWorldSid);
166  RelSd = SecurityDescriptor;
167  SdSize = sizeof(*RelSd);
168 
170  {
171  Owner = SdSize;
172  SdSize += SidSize;
173  }
174 
176  {
177  Group = SdSize;
178  SdSize += SidSize;
179  }
180 
182  {
184  Dacl = SdSize;
185  AclSize = sizeof(ACL) + sizeof(ACE) + SidSize;
186  SdSize += AclSize;
187  }
188 
190  {
192  }
193 
194  if (*BufferLength < SdSize)
195  {
196  *BufferLength = SdSize;
198  }
199 
200  *BufferLength = SdSize;
201 
204  if (!NT_SUCCESS(Status))
205  return Status;
206 
207  RelSd->Control |= Control;
208  RelSd->Owner = Owner;
209  RelSd->Group = Group;
210  RelSd->Dacl = Dacl;
211 
212  if (Owner)
213  RtlCopyMemory((PUCHAR)RelSd + Owner,
214  SeWorldSid,
215  SidSize);
216 
217  if (Group)
218  RtlCopyMemory((PUCHAR)RelSd + Group,
219  SeWorldSid,
220  SidSize);
221 
222  if (Dacl)
223  {
224  Status = RtlCreateAcl((PACL)((PUCHAR)RelSd + Dacl),
225  AclSize,
226  ACL_REVISION);
227  if (NT_SUCCESS(Status))
228  {
230  ACL_REVISION,
231  GENERIC_ALL,
232  SeWorldSid);
233  }
234  }
235 
237  return Status;
238 }
#define SE_SACL_PRESENT
Definition: setypes.h:769
#define GENERIC_ALL
Definition: nt_native.h:92
NTSYSAPI VOID NTAPI RtlCopyMemory(VOID UNALIGNED *Destination, CONST VOID UNALIGNED *Source, ULONG Length)
NTSYSAPI NTSTATUS NTAPI RtlCreateSecurityDescriptorRelative(_Out_ PISECURITY_DESCRIPTOR_RELATIVE SecurityDescriptor, _In_ ULONG Revision)
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:182
#define DBG_UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
_In_opt_ PSID Group
Definition: rtlfuncs.h:1606
unsigned char * PUCHAR
Definition: retypes.h:3
LONG NTSTATUS
Definition: precomp.h:26
#define GROUP_SECURITY_INFORMATION
Definition: setypes.h:124
#define SE_DACL_PRESENT
Definition: setypes.h:767
NTSYSAPI NTSTATUS WINAPI RtlAddAccessAllowedAce(PACL, DWORD, DWORD, PSID)
#define STATUS_BUFFER_TOO_SMALL
Definition: shellext.h:64
NTSYSAPI NTSTATUS NTAPI RtlCreateAcl(PACL Acl, ULONG AclSize, ULONG AclRevision)
#define SECURITY_DESCRIPTOR_REVISION
Definition: setypes.h:58
_In_ ULONG BufferLength
Definition: usbdlib.h:225
WORD SECURITY_DESCRIPTOR_CONTROL
Definition: lsa.idl:37
struct _ACL ACL
void DPRINT(...)
Definition: polytest.cpp:61
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1339
NTSYSAPI ULONG NTAPI RtlLengthSid(IN PSID Sid)
Definition: sid.c:150
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:32
#define SACL_SECURITY_INFORMATION
Definition: setypes.h:126
#define STATUS_ACCESS_DENIED
Definition: udferr_usr.h:145
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL Dacl
Definition: rtlfuncs.h:1553
PSID SeWorldSid
Definition: sid.c:31
static const WCHAR Control[]
Definition: interface.c:27
Status
Definition: gdiplustypes.h:24
SECURITY_DESCRIPTOR_CONTROL Control
Definition: setypes.h:785
#define OWNER_SECURITY_INFORMATION
Definition: setypes.h:123
_Out_writes_bytes_to_opt_ AbsoluteSecurityDescriptorSize PSECURITY_DESCRIPTOR _Inout_ PULONG _Out_writes_bytes_to_opt_ DaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ SaclSize PACL _Inout_ PULONG _Out_writes_bytes_to_opt_ OwnerSize PSID Owner
Definition: rtlfuncs.h:1557
#define ACL_REVISION
Definition: setypes.h:39
unsigned int ULONG
Definition: retypes.h:1
return STATUS_SUCCESS
Definition: btrfs.c:2966
Definition: rtltypes.h:988
#define DACL_SECURITY_INFORMATION
Definition: setypes.h:125

Referenced by CmpSecurityMethod().

◆ CmpSecurityMethod()

NTSTATUS NTAPI CmpSecurityMethod ( IN PVOID  ObjectBody,
IN SECURITY_OPERATION_CODE  OperationCode,
IN PSECURITY_INFORMATION  SecurityInformation,
IN OUT PSECURITY_DESCRIPTOR  SecurityDescriptor,
IN OUT PULONG  BufferLength,
IN OUT PSECURITY_DESCRIPTOR OldSecurityDescriptor,
IN POOL_TYPE  PoolType,
IN PGENERIC_MAPPING  GenericMapping 
)

Definition at line 262 of file cmse.c.

270 {
273 
274  DBG_UNREFERENCED_PARAMETER(OldSecurityDescriptor);
276 
277  Kcb = ((PCM_KEY_BODY)ObjectBody)->KeyControlBlock;
278 
279  /* Acquire the hive lock */
280  CmpLockRegistry();
281 
282  /* Acquire the KCB lock */
283  if (OperationCode == QuerySecurityDescriptor)
284  {
286  }
287  else
288  {
290  }
291 
292  /* Don't touch deleted keys */
293  if (Kcb->Delete)
294  {
295  /* Release the KCB lock */
296  CmpReleaseKcbLock(Kcb);
297 
298  /* Release the hive lock */
300  return STATUS_KEY_DELETED;
301  }
302 
303  switch (OperationCode)
304  {
305  case SetSecurityDescriptor:
306  DPRINT("Set security descriptor\n");
311  PoolType,
313  break;
314 
315  case QuerySecurityDescriptor:
316  DPRINT("Query security descriptor\n");
320  BufferLength);
321  break;
322 
323  case DeleteSecurityDescriptor:
324  DPRINT("Delete security descriptor\n");
325  /* HACK */
326  break;
327 
328  case AssignSecurityDescriptor:
329  DPRINT("Assign security descriptor\n");
332  break;
333 
334  default:
335  KeBugCheckEx(SECURITY_SYSTEM, 0, STATUS_INVALID_PARAMETER, 0, 0);
336  }
337 
338  /* Release the KCB lock */
339  CmpReleaseKcbLock(Kcb);
340 
341  /* Release the hive lock */
343 
344  return Status;
345 }
_In_ USHORT _In_ ULONG _In_ PSOCKADDR _In_ PSOCKADDR _Reserved_ ULONG _In_opt_ PVOID _In_opt_ const WSK_CLIENT_CONNECTION_DISPATCH _In_opt_ PEPROCESS _In_opt_ PETHREAD _In_opt_ PSECURITY_DESCRIPTOR SecurityDescriptor
Definition: wsk.h:182
#define STATUS_INVALID_PARAMETER
Definition: udferr_usr.h:135
#define DBG_UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:325
LONG NTSTATUS
Definition: precomp.h:26
NTSTATUS CmpQuerySecurityDescriptor(IN PCM_KEY_CONTROL_BLOCK Kcb, IN SECURITY_INFORMATION SecurityInformation, OUT PSECURITY_DESCRIPTOR SecurityDescriptor, IN OUT PULONG BufferLength)
Definition: cmse.c:141
#define CmpAcquireKcbLockShared(k)
Definition: cm_x.h:121
_In_ ULONG BufferLength
Definition: usbdlib.h:225
void DPRINT(...)
Definition: polytest.cpp:61
_Must_inspect_result_ _In_ PFILE_OBJECT _In_ SECURITY_INFORMATION SecurityInformation
Definition: fltkernel.h:1339
#define STATUS_KEY_DELETED
Definition: ntstatus.h:599
FORCEINLINE VOID CmpReleaseKcbLock(PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cm_x.h:169
VOID NTAPI CmpUnlockRegistry(VOID)
Definition: cmsysini.c:1993
ASSERT((InvokeOnSuccess||InvokeOnError||InvokeOnCancel) ?(CompletionRoutine !=NULL) :TRUE)
Status
Definition: gdiplustypes.h:24
static GENERIC_MAPPING GenericMapping
Definition: SeInheritance.c:11
NTSTATUS CmpSetSecurityDescriptor(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PSECURITY_INFORMATION SecurityInformation, IN PSECURITY_DESCRIPTOR SecurityDescriptor, IN POOL_TYPE PoolType, IN PGENERIC_MAPPING GenericMapping)
Definition: cmse.c:241
FORCEINLINE VOID CmpAcquireKcbLockExclusive(PCM_KEY_CONTROL_BLOCK Kcb)
Definition: cm_x.h:102
struct _CM_KEY_BODY * PCM_KEY_BODY
NTSTATUS CmpAssignSecurityDescriptor(IN PCM_KEY_CONTROL_BLOCK Kcb, IN PSECURITY_DESCRIPTOR SecurityDescriptor)
Definition: cmse.c:252
return STATUS_SUCCESS
Definition: btrfs.c:2966
_Must_inspect_result_ _In_ FLT_CONTEXT_TYPE _In_ SIZE_T _In_ POOL_TYPE PoolType
Definition: fltkernel.h:1444
VOID NTAPI CmpLockRegistry(VOID)
Definition: cmsysini.c:1907
VOID NTAPI KeBugCheckEx(_In_ ULONG BugCheckCode, _In_ ULONG_PTR BugCheckParameter1, _In_ ULONG_PTR BugCheckParameter2, _In_ ULONG_PTR BugCheckParameter3, _In_ ULONG_PTR BugCheckParameter4)
Definition: rtlcompat.c:107

Referenced by CmpCreateObjectTypes(), and CmpDoCreateChild().

◆ CmpSetSecurityDescriptor()

NTSTATUS CmpSetSecurityDescriptor ( IN PCM_KEY_CONTROL_BLOCK  Kcb,
IN PSECURITY_INFORMATION  SecurityInformation,
IN PSECURITY_DESCRIPTOR  SecurityDescriptor,
IN POOL_TYPE  PoolType,
IN PGENERIC_MAPPING  GenericMapping 
)

Definition at line 241 of file cmse.c.

246 {
247  DPRINT("CmpSetSecurityDescriptor()\n");
248  return STATUS_SUCCESS;
249 }
void DPRINT(...)
Definition: polytest.cpp:61
return STATUS_SUCCESS
Definition: btrfs.c:2966

Referenced by CmpSecurityMethod().