]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: check for valid FSA fsp in smb_set_posix_acl()
authorRalph Boehme <slow@samba.org>
Mon, 16 Nov 2020 17:37:42 +0000 (18:37 +0100)
committerRalph Boehme <slow@samba.org>
Wed, 16 Dec 2020 09:08:31 +0000 (09:08 +0000)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/smbd/trans2.c

index f11b86eda0622fd10c6ce2b4b229d83302fb679d..caab97915eaeff782169aff426b16c00f044396e 100644 (file)
@@ -7568,7 +7568,7 @@ static NTSTATUS smb_set_posix_acl(connection_struct *conn,
         * Ensure we always operate on a file descriptor, not just
         * the filename.
         */
-       if (fsp == NULL) {
+       if (fsp == NULL || !fsp->fsp_flags.is_fsa) {
                uint32_t access_mask = SEC_STD_WRITE_OWNER|
                                        SEC_STD_WRITE_DAC|
                                        SEC_STD_READ_CONTROL|