mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[NTOSKRNL]: DACL and SACL should only be returned if the control flag indicates that they are present.
svn path=/trunk/; revision=57347
This commit is contained in:
@@ -69,6 +69,8 @@ SepGetDaclFromDescriptor(PVOID _Descriptor)
|
||||
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;
|
||||
PISECURITY_DESCRIPTOR_RELATIVE SdRel;
|
||||
|
||||
if (!(Descriptor->Control & SE_DACL_PRESENT)) return NULL;
|
||||
|
||||
if (Descriptor->Control & SE_SELF_RELATIVE)
|
||||
{
|
||||
SdRel = (PISECURITY_DESCRIPTOR_RELATIVE)Descriptor;
|
||||
@@ -88,6 +90,8 @@ SepGetSaclFromDescriptor(PVOID _Descriptor)
|
||||
PISECURITY_DESCRIPTOR Descriptor = (PISECURITY_DESCRIPTOR)_Descriptor;
|
||||
PISECURITY_DESCRIPTOR_RELATIVE SdRel;
|
||||
|
||||
if (!(Descriptor->Control & SE_SACL_PRESENT)) return NULL;
|
||||
|
||||
if (Descriptor->Control & SE_SELF_RELATIVE)
|
||||
{
|
||||
SdRel = (PISECURITY_DESCRIPTOR_RELATIVE)Descriptor;
|
||||
|
||||
Reference in New Issue
Block a user