X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=reactos%2Fntoskrnl%2Fio%2Ffile.c;h=0fa8b13b2d26d44fc4e343ac37f6341cbd00f772;hp=ab9d8b7e888a48dc93d68ccc74caf48b15e2d3c2;hb=db3f6ecb7587291c1992456a98cc4024e8e25868;hpb=824fc6410b617e7ad51c234618749d4d3dad93e5 diff --git a/reactos/ntoskrnl/io/file.c b/reactos/ntoskrnl/io/file.c index ab9d8b7e888..0fa8b13b2d2 100644 --- a/reactos/ntoskrnl/io/file.c +++ b/reactos/ntoskrnl/io/file.c @@ -758,6 +758,8 @@ IoCreateFile(OUT PHANDLE FileHandle, LARGE_INTEGER SafeAllocationSize; PVOID SystemEaBuffer = NULL; NTSTATUS Status = STATUS_SUCCESS; + AUX_DATA AuxData; + ACCESS_STATE AccessState; DPRINT("IoCreateFile(FileHandle 0x%p, DesiredAccess %x, " "ObjectAttributes 0x%p ObjectAttributes->ObjectName->Buffer %S)\n", @@ -962,8 +964,14 @@ IoCreateFile(OUT PHANDLE FileHandle, if (CreateOptions & FILE_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.AccessState = NULL; /* ?? */ + SecurityContext.AccessState = &AccessState; SecurityContext.DesiredAccess = DesiredAccess; SecurityContext.FullCreateOptions = 0; /* ?? */