projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8281f4b
)
[NTOSKRNL] Don't need all access for file object
author
Pierre Schweitzer
<pierre@reactos.org>
Thu, 16 Aug 2018 16:54:23 +0000
(18:54 +0200)
committer
Pierre Schweitzer
<pierre@reactos.org>
Thu, 16 Aug 2018 16:54:23 +0000
(18:54 +0200)
ntoskrnl/mm/pagefile.c
patch
|
blob
|
history
diff --git
a/ntoskrnl/mm/pagefile.c
b/ntoskrnl/mm/pagefile.c
index
14c558e
..
9855578
100644
(file)
--- a/
ntoskrnl/mm/pagefile.c
+++ b/
ntoskrnl/mm/pagefile.c
@@
-715,7
+715,7
@@
NtCreatePagingFile(IN PUNICODE_STRING FileName,
}
Status = ObReferenceObjectByHandle(FileHandle,
- FILE_
ALL_ACCESS
,
+ FILE_
READ_DATA | FILE_WRITE_DATA
,
IoFileObjectType,
KernelMode,
(PVOID*)&FileObject,