sys: FspFsvolFileSystemControlReparsePoint: STATUS_ACCESS_DENIED

This commit is contained in:
Bill Zissimopoulos
2016-12-31 23:01:40 -08:00
parent 6b37e2ef12
commit 830985d331
3 changed files with 7 additions and 0 deletions

View File

@ -148,6 +148,11 @@ static NTSTATUS FspFsvolFileSystemControlReparsePoint(
if (!NT_SUCCESS(Result))
return Result;
/* NTFS seems to require one of these rights to allow FSCTL_SET_REPARSE_POINT */
if (!FlagOn(FileDesc->GrantedAccess,
FILE_WRITE_DATA | FILE_APPEND_DATA | FILE_WRITE_ATTRIBUTES))
return STATUS_ACCESS_DENIED;
ReparseData = (PREPARSE_DATA_BUFFER)InputBuffer;
if (IO_REPARSE_TAG_SYMLINK == ReparseData->ReparseTag)