mirror of
https://github.com/reactos/reactos.git
synced 2025-07-05 22:31:22 +00:00
[NTOS:SE]
Add the CmpAssignSecurityDescriptor() stub and improve some comments. svn path=/trunk/; revision=75108
This commit is contained in:
parent
abf7007043
commit
91cbbbe892
1 changed files with 16 additions and 6 deletions
|
@ -248,6 +248,15 @@ CmpSetSecurityDescriptor(IN PCM_KEY_CONTROL_BLOCK Kcb,
|
||||||
return STATUS_SUCCESS;
|
return STATUS_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
NTSTATUS
|
||||||
|
CmpAssignSecurityDescriptor(IN PCM_KEY_CONTROL_BLOCK Kcb,
|
||||||
|
IN PSECURITY_DESCRIPTOR SecurityDescriptor)
|
||||||
|
{
|
||||||
|
DPRINT("CmpAssignSecurityDescriptor(%p %p)\n",
|
||||||
|
Kcb, SecurityDescriptor);
|
||||||
|
return STATUS_SUCCESS;
|
||||||
|
}
|
||||||
|
|
||||||
NTSTATUS
|
NTSTATUS
|
||||||
NTAPI
|
NTAPI
|
||||||
CmpSecurityMethod(IN PVOID ObjectBody,
|
CmpSecurityMethod(IN PVOID ObjectBody,
|
||||||
|
@ -267,7 +276,7 @@ CmpSecurityMethod(IN PVOID ObjectBody,
|
||||||
|
|
||||||
Kcb = ((PCM_KEY_BODY)ObjectBody)->KeyControlBlock;
|
Kcb = ((PCM_KEY_BODY)ObjectBody)->KeyControlBlock;
|
||||||
|
|
||||||
/* Acquire hive lock */
|
/* Acquire the hive lock */
|
||||||
CmpLockRegistry();
|
CmpLockRegistry();
|
||||||
|
|
||||||
/* Acquire the KCB lock */
|
/* Acquire the KCB lock */
|
||||||
|
@ -283,10 +292,10 @@ CmpSecurityMethod(IN PVOID ObjectBody,
|
||||||
/* Don't touch deleted keys */
|
/* Don't touch deleted keys */
|
||||||
if (Kcb->Delete)
|
if (Kcb->Delete)
|
||||||
{
|
{
|
||||||
/* Unlock the KCB */
|
/* Release the KCB lock */
|
||||||
CmpReleaseKcbLock(Kcb);
|
CmpReleaseKcbLock(Kcb);
|
||||||
|
|
||||||
/* Unlock the HIVE */
|
/* Release the hive lock */
|
||||||
CmpUnlockRegistry();
|
CmpUnlockRegistry();
|
||||||
return STATUS_KEY_DELETED;
|
return STATUS_KEY_DELETED;
|
||||||
}
|
}
|
||||||
|
@ -318,17 +327,18 @@ CmpSecurityMethod(IN PVOID ObjectBody,
|
||||||
|
|
||||||
case AssignSecurityDescriptor:
|
case AssignSecurityDescriptor:
|
||||||
DPRINT("Assign security descriptor\n");
|
DPRINT("Assign security descriptor\n");
|
||||||
/* HACK */
|
Status = CmpAssignSecurityDescriptor(Kcb,
|
||||||
|
SecurityDescriptor);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
KeBugCheckEx(SECURITY_SYSTEM, 0, STATUS_INVALID_PARAMETER, 0, 0);
|
KeBugCheckEx(SECURITY_SYSTEM, 0, STATUS_INVALID_PARAMETER, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Unlock the KCB */
|
/* Release the KCB lock */
|
||||||
CmpReleaseKcbLock(Kcb);
|
CmpReleaseKcbLock(Kcb);
|
||||||
|
|
||||||
/* Unlock the hive */
|
/* Release the hive lock */
|
||||||
CmpUnlockRegistry();
|
CmpUnlockRegistry();
|
||||||
|
|
||||||
return Status;
|
return Status;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue