BUG: https://bugzilla.samba.org/show_bug.cgi?id=14215
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Mon Aug 29 18:20:20 UTC 2022 on sn-devel-184
+++ /dev/null
-^samba3.smb2.maximum_allowed.read_only
{
struct security_descriptor *sd = NULL;
uint32_t access_granted = 0;
+ uint32_t dosattrs;
NTSTATUS status;
/* Cope with symlinks */
}
}
+ dosattrs = fdos_mode(fsp);
+ if (IS_DOS_READONLY(dosattrs) || !CAN_WRITE(fsp->conn)) {
+ *p_access_mask &= ~(FILE_GENERIC_WRITE | DELETE_ACCESS);
+ }
+
return NT_STATUS_OK;
}