projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a71f3a7
)
[NTOS:OB] Correctly handle OBJ_PROTECT_CLOSE in ObDuplicateObject.
author
Thomas Faber
<thomas.faber@reactos.org>
Sat, 19 Jan 2019 10:45:33 +0000
(11:45 +0100)
committer
Thomas Faber
<thomas.faber@reactos.org>
Sat, 2 Feb 2019 22:02:50 +0000
(23:02 +0100)
ntoskrnl/ob/obhandle.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/ob/obhandle.c
b/ntoskrnl/ob/obhandle.c
index
057cdec
..
38171d2
100644
(file)
--- a/
ntoskrnl/ob/obhandle.c
+++ b/
ntoskrnl/ob/obhandle.c
@@
-2443,6
+2443,12
@@
ObDuplicateObject(IN PEPROCESS SourceProcess,
return Status;
}
+ if (NewHandleEntry.ObAttributes & OBJ_PROTECT_CLOSE)
+ {
+ NewHandleEntry.ObAttributes &= ~OBJ_PROTECT_CLOSE;
+ NewHandleEntry.GrantedAccess |= ObpAccessProtectCloseBit;
+ }
+
/* Now create the handle */
NewHandle = ExCreateHandle(HandleTable, &NewHandleEntry);
if (!NewHandle)