From d7255f1584909d1cfbd22c1b20fcc958dccf5c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Bi=C8=99oc?= Date: Wed, 8 Sep 2021 18:25:50 +0200 Subject: [PATCH] [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. --- ntoskrnl/se/sd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ntoskrnl/se/sd.c b/ntoskrnl/se/sd.c index c3be55a677c..98de8842619 100644 --- a/ntoskrnl/se/sd.c +++ b/ntoskrnl/se/sd.c @@ -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))