summaryrefslogtreecommitdiff
path: root/source4/ntvfs/posix
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-09-24 17:58:15 -0700
committerAndrew Tridgell <tridge@samba.org>2008-09-24 18:10:23 -0700
commitd2bdb8fb1685d7ab2f23a4c4169bcc2e5c97f675 (patch)
tree715793c83f2caa600ca748a2f73fae0128f5f2e1 /source4/ntvfs/posix
parenteb5b3f50d17dfca198304d636033ad93410d570f (diff)
downloadsamba-d2bdb8fb1685d7ab2f23a4c4169bcc2e5c97f675.tar.gz
samba-d2bdb8fb1685d7ab2f23a4c4169bcc2e5c97f675.tar.bz2
samba-d2bdb8fb1685d7ab2f23a4c4169bcc2e5c97f675.zip
empty access mask is only denied on SMB2
Diffstat (limited to 'source4/ntvfs/posix')
-rw-r--r--source4/ntvfs/posix/pvfs_acl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index 06a4e69004..d479f1e2ee 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -511,7 +511,9 @@ NTSTATUS pvfs_access_check(struct pvfs_state *pvfs,
NTSTATUS status;
struct security_descriptor *sd;
- if (*access_mask == 0) {
+ /* on SMB2 a blank access mask is always denied */
+ if (pvfs->ntvfs->ctx->protocol == PROTOCOL_SMB2 &&
+ *access_mask == 0) {
return NT_STATUS_ACCESS_DENIED;
}