]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3-smbd: send notifications for ACL changes gitlab/master
authorGünther Deschner <gd@samba.org>
Thu, 2 Oct 2025 14:04:42 +0000 (16:04 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 6 Nov 2025 02:42:06 +0000 (02:42 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=14148

Guenther

Signed-off-by: Guenther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Nov  6 02:42:06 UTC 2025 on atb-devel-224

selftest/knownfail
source3/smbd/smb2_nttrans.c

index 36ac6a1251022ecf49583108d4fa468cb2fd91bf..ab2d79d7114edb6ee29eafd4ef5e4ce84921471b 100644 (file)
 ^samba3.smb2.create.blob
 ^samba3.smb2.create.open
 ^samba3.smb2.notify.rec
-^samba3.smb2.notify.security
 ^samba3.smb2.durable-open.delete_on_close2
 ^samba3.smb2.durable-v2-open.app-instance
 ^samba3.smb2.durable-open.reopen1a-lease\(ad_dc\)$
index 32ec5a9b5c890499b571657743f57d229c5b52e0..780fc64e5298b955d74f3568a82db80e08e65e47 100644 (file)
@@ -167,9 +167,16 @@ NTSTATUS set_sd(files_struct *fsp, struct security_descriptor *psd,
 
        sd_fsp = metadata_fsp(fsp);
        status = SMB_VFS_FSET_NT_ACL(sd_fsp, security_info_sent, psd);
-
        TALLOC_FREE(psd);
 
+       if (NT_STATUS_IS_OK(status)) {
+               notify_fname(fsp->conn,
+                            NOTIFY_ACTION_MODIFIED,
+                            FILE_NOTIFY_CHANGE_SECURITY,
+                            fsp->fsp_name,
+                            NULL);
+       }
+
        return status;
 }