]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: check for valid FSA fsp in smb_query_posix_acl()
authorRalph Boehme <slow@samba.org>
Mon, 16 Nov 2020 17:37:11 +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 55eb015b5ce24217653da456258e8a7b700740df..f11b86eda0622fd10c6ce2b4b229d83302fb679d 100644 (file)
@@ -4969,7 +4969,7 @@ static NTSTATUS smb_query_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_READ_CONTROL|
                                        FILE_READ_ATTRIBUTES|
                                        FILE_WRITE_ATTRIBUTES;