projects
/
reactos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[NTOSKRNL] Don't need all access for file object
[reactos.git]
/
ntoskrnl
/
mm
/
pagefile.c
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,