]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
smbd: Ensure we grant owner sid in check_parent_access_fsp()
authorMikeLiu <mikeliu@qnap.com>
Fri, 31 May 2024 07:31:46 +0000 (15:31 +0800)
committerJeremy Allison <jra@samba.org>
Fri, 7 Jun 2024 18:30:34 +0000 (18:30 +0000)
Grant owner sid to check for owner rights.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=15648

Signed-off-by: MikeLiu <mikeliu@qnap.com>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jun  7 18:30:34 UTC 2024 on atb-devel-224

source3/smbd/open.c

index f714b75d4725db4046fbd71653b18d1a6f3fdc05..7d2227f9d9f229549a95417f6387da5bf203a868 100644 (file)
@@ -355,7 +355,7 @@ NTSTATUS check_parent_access_fsp(struct files_struct *fsp,
        }
 
        status = SMB_VFS_FGET_NT_ACL(fsp,
-                               SECINFO_DACL,
+                               (SECINFO_OWNER | SECINFO_GROUP | SECINFO_DACL),
                                frame,
                                &parent_sd);