diff options
author | Andrew Tridgell <tridge@samba.org> | 2008-09-24 17:31:57 -0700 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2008-09-24 18:10:23 -0700 |
commit | d3c6c71ff2d5499be152785a49ad128641330b40 (patch) | |
tree | 0c6074d1ca94f3adc63d83628a3ab761526686ae /source4 | |
parent | 4904882fed1e3b72ba45052323c95c0fda301d64 (diff) | |
download | samba-d3c6c71ff2d5499be152785a49ad128641330b40.tar.gz samba-d3c6c71ff2d5499be152785a49ad128641330b40.tar.bz2 samba-d3c6c71ff2d5499be152785a49ad128641330b40.zip |
zero access mask should give ACCESS_DENIED
Diffstat (limited to 'source4')
-rw-r--r-- | source4/ntvfs/posix/pvfs_acl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index 57a463aba6..06a4e69004 100644 --- a/source4/ntvfs/posix/pvfs_acl.c +++ b/source4/ntvfs/posix/pvfs_acl.c @@ -511,6 +511,10 @@ NTSTATUS pvfs_access_check(struct pvfs_state *pvfs, NTSTATUS status; struct security_descriptor *sd; + if (*access_mask == 0) { + return NT_STATUS_ACCESS_DENIED; + } + if (pvfs_read_only(pvfs, *access_mask)) { return NT_STATUS_ACCESS_DENIED; } |