From 8e865cb39d7bd95e7d3fff6e1938d6ed7387d179 Mon Sep 17 00:00:00 2001 From: Alex Mendoza <05alex.mendozaa@gmail.com> Date: Fri, 26 Jun 2026 19:22:55 +0200 Subject: [PATCH] [NTOS:OB] Return handle attributes by ObReferenceFileObjectForWrite (#9213) Resolve a FIXME in ObReferenceFileObjectForWrite by getting the handle attributes, the same way it's done in other parts of the Ob code. --- ntoskrnl/ob/obref.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ntoskrnl/ob/obref.c b/ntoskrnl/ob/obref.c index 60825543e25..1448d29e1b8 100644 --- a/ntoskrnl/ob/obref.c +++ b/ntoskrnl/ob/obref.c @@ -263,8 +263,7 @@ ObReferenceFileObjectForWrite(IN HANDLE Handle, HandleInformation->GrantedAccess = GrantedAccess; - /* FIXME: Get handle attributes */ - HandleInformation->HandleAttributes = 0; + HandleInformation->HandleAttributes = HandleEntry->ObAttributes & OBJ_HANDLE_ATTRIBUTES; /* Do granted and desired access match? */ if (GrantedAccess & DesiredAccess)