https://git.reactos.org/?p=reactos.git;a=commitdiff;h=cc59c97308161fade55a7…
commit cc59c97308161fade55a7f2dab17579130ec5219
Author: Pierre Schweitzer <pierre(a)reactos.org>
AuthorDate: Thu Aug 16 18:54:23 2018 +0200
Commit: Pierre Schweitzer <pierre(a)reactos.org>
CommitDate: Thu Aug 16 18:54:23 2018 +0200
[NTOSKRNL] Don't need all access for file object
---
ntoskrnl/mm/pagefile.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ntoskrnl/mm/pagefile.c b/ntoskrnl/mm/pagefile.c
index 14c558e9f9..985557825f 100644
--- 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,