From: Andrew Tridgell Date: Tue, 27 May 2008 06:02:27 +0000 (+1000) Subject: another attempt at the damn SEC_STD_SYNCHRONIZE flag X-Git-Tag: samba-4.0.0alpha4~24^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2ac27bfffa557d6c0f71c443b43a8d1967edb177;p=thirdparty%2Fsamba.git another attempt at the damn SEC_STD_SYNCHRONIZE flag --- diff --git a/source/ntvfs/posix/pvfs_open.c b/source/ntvfs/posix/pvfs_open.c index adcdeb1f2bb..908dd449afc 100644 --- a/source/ntvfs/posix/pvfs_open.c +++ b/source/ntvfs/posix/pvfs_open.c @@ -1155,14 +1155,11 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs, return NT_STATUS_ACCESS_DENIED; } -#if 0 /* what does this bit really mean?? */ if (req->ctx->protocol == PROTOCOL_SMB2 && - (access_mask & SEC_STD_SYNCHRONIZE) && - !(access_mask & SEC_STD_READ_CONTROL)) { + access_mask == SEC_STD_SYNCHRONIZE) { return NT_STATUS_ACCESS_DENIED; } -#endif if (io->ntcreatex.in.file_attr & (FILE_ATTRIBUTE_DEVICE| FILE_ATTRIBUTE_VOLUME|