From 70b020ca7698c30f3c0647f620d690aba7674022 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 16 Oct 2009 10:05:02 +1100 Subject: s4-pvfs: fixed mask handling for SEC_FLAG_MAXIMUM_ALLOWED This matches the sec_access_check() code --- source4/ntvfs/posix/pvfs_acl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c index 7a204b4d43..4680b17b79 100644 --- a/source4/ntvfs/posix/pvfs_acl.c +++ b/source4/ntvfs/posix/pvfs_acl.c @@ -517,8 +517,8 @@ NTSTATUS pvfs_access_check_unix(struct pvfs_state *pvfs, } if (*access_mask & SEC_FLAG_MAXIMUM_ALLOWED) { - *access_mask = max_bits; - return NT_STATUS_OK; + *access_mask |= max_bits; + *access_mask &= ~SEC_FLAG_MAXIMUM_ALLOWED; } if (uid != 0 && (*access_mask & SEC_FLAG_SYSTEM_SECURITY)) { -- cgit