mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +00:00
- Send a hacked access state to FS Drivers, they can depend on one. For now use one with full FILE_ALL_ACCESS privileges.
svn path=/trunk/; revision=19056
This commit is contained in:
parent
824fc6410b
commit
db3f6ecb75
1 changed files with 9 additions and 1 deletions
|
@ -758,6 +758,8 @@ IoCreateFile(OUT PHANDLE FileHandle,
|
||||||
LARGE_INTEGER SafeAllocationSize;
|
LARGE_INTEGER SafeAllocationSize;
|
||||||
PVOID SystemEaBuffer = NULL;
|
PVOID SystemEaBuffer = NULL;
|
||||||
NTSTATUS Status = STATUS_SUCCESS;
|
NTSTATUS Status = STATUS_SUCCESS;
|
||||||
|
AUX_DATA AuxData;
|
||||||
|
ACCESS_STATE AccessState;
|
||||||
|
|
||||||
DPRINT("IoCreateFile(FileHandle 0x%p, DesiredAccess %x, "
|
DPRINT("IoCreateFile(FileHandle 0x%p, DesiredAccess %x, "
|
||||||
"ObjectAttributes 0x%p ObjectAttributes->ObjectName->Buffer %S)\n",
|
"ObjectAttributes 0x%p ObjectAttributes->ObjectName->Buffer %S)\n",
|
||||||
|
@ -962,8 +964,14 @@ IoCreateFile(OUT PHANDLE FileHandle,
|
||||||
if (CreateOptions & FILE_NO_INTERMEDIATE_BUFFERING)
|
if (CreateOptions & FILE_NO_INTERMEDIATE_BUFFERING)
|
||||||
FileObject->Flags |= FO_NO_INTERMEDIATE_BUFFERING;
|
FileObject->Flags |= FO_NO_INTERMEDIATE_BUFFERING;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* FIXME: We should get the access state from Ob once this function becomes
|
||||||
|
* a parse routine once the Ob is refactored.
|
||||||
|
*/
|
||||||
|
SeCreateAccessState(&AccessState, &AuxData, FILE_ALL_ACCESS, NULL);
|
||||||
|
|
||||||
SecurityContext.SecurityQos = NULL; /* ?? */
|
SecurityContext.SecurityQos = NULL; /* ?? */
|
||||||
SecurityContext.AccessState = NULL; /* ?? */
|
SecurityContext.AccessState = &AccessState;
|
||||||
SecurityContext.DesiredAccess = DesiredAccess;
|
SecurityContext.DesiredAccess = DesiredAccess;
|
||||||
SecurityContext.FullCreateOptions = 0; /* ?? */
|
SecurityContext.FullCreateOptions = 0; /* ?? */
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue