[BTRFS] Import BTRFS upstream commit e43183a0 "open_file: set granted_access when creating file".

Better solution for the original problem described at:
https://github.com/maharmstone/btrfs/pull/123
This commit is contained in:
Mark Harmstone 2018-11-11 18:47:35 +00:00 committed by Hermès Bélusca-Maïto
parent bebbb69b21
commit 5729380349
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0

View file

@ -3557,6 +3557,7 @@ static NTSTATUS open_file(PDEVICE_OBJECT DeviceObject, _Requires_lock_held_(_Cur
release_fcb_lock(Vcb);
Irp->IoStatus.Information = NT_SUCCESS(Status) ? FILE_CREATED : 0;
granted_access = IrpSp->Parameters.Create.SecurityContext->DesiredAccess;
}
if (NT_SUCCESS(Status) && !(options & FILE_NO_INTERMEDIATE_BUFFERING))