From 88e41959e14f2e8cb4fca2e1920ec3172bfbcdd5 Mon Sep 17 00:00:00 2001 From: Aleksey Bragin Date: Tue, 1 Dec 2009 21:26:40 +0000 Subject: [PATCH] [ntoskrnl/se] - Add a hack which prints an annoying message and grants access when it should not be. Callers/bugs should be fixed and this commit reverted after that. See issue #4169 for more details. svn path=/trunk/; revision=44348 --- reactos/ntoskrnl/se/semgr.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/reactos/ntoskrnl/se/semgr.c b/reactos/ntoskrnl/se/semgr.c index 85cbead194e..fdee0973027 100644 --- a/reactos/ntoskrnl/se/semgr.c +++ b/reactos/ntoskrnl/se/semgr.c @@ -608,10 +608,12 @@ SepAccessCheck(IN PSECURITY_DESCRIPTOR SecurityDescriptor, } else { - DPRINT1("Denying access for caller: granted 0x%lx, desired 0x%lx (generic mapping %p)\n", + DPRINT1("HACK: Should deny access for caller: granted 0x%lx, desired 0x%lx (generic mapping %p).\n", *GrantedAccess, DesiredAccess, GenericMapping); - *AccessStatus = STATUS_ACCESS_DENIED; - return FALSE; + //*AccessStatus = STATUS_ACCESS_DENIED; + //return FALSE; + *AccessStatus = STATUS_SUCCESS; + return TRUE; } }