https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d7255f1584909d1cfbd22c...
commit d7255f1584909d1cfbd22c1b20fcc958dccf5c90 Author: George Bișoc george.bisoc@reactos.org AuthorDate: Wed Sep 8 18:25:50 2021 +0200 Commit: George Bișoc george.bisoc@reactos.org CommitDate: Thu Sep 9 19:29:53 2021 +0200
[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))