[NTOS:SE] Explicitly check the auto inherit flags right away

As we now have the SEF_* flags declared within the SDK we can simply check for such flags directly wihout having to check for the hard-coded flag values.
This commit is contained in:
George Bișoc 2021-09-08 18:25:50 +02:00
parent 58c42afec2
commit d7255f1584
No known key found for this signature in database
GPG key ID: 688C4FBE25D7DEF6

View file

@ -1285,7 +1285,7 @@ SeAssignSecurityEx(
}
if (!Owner)
{
if (AutoInheritFlags & 0x20 /* FIXME: SEF_DEFAULT_OWNER_FROM_PARENT */)
if (AutoInheritFlags & SEF_DEFAULT_OWNER_FROM_PARENT)
{
DPRINT("Use parent owner sid!\n");
if (!ARGUMENT_PRESENT(ParentDescriptor))
@ -1317,7 +1317,7 @@ SeAssignSecurityEx(
}
if (!Group)
{
if (AutoInheritFlags & 0x40 /* FIXME: SEF_DEFAULT_GROUP_FROM_PARENT */)
if (AutoInheritFlags & SEF_DEFAULT_GROUP_FROM_PARENT)
{
DPRINT("Use parent group sid!\n");
if (!ARGUMENT_PRESENT(ParentDescriptor))