]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
CVE-2019-14902 dsdb: Add comments explaining why SD propagation needs to be done...
authorAndrew Bartlett <abartlet@samba.org>
Tue, 26 Nov 2019 03:17:32 +0000 (16:17 +1300)
committerKarolin Seeger <kseeger@samba.org>
Fri, 10 Jan 2020 10:56:20 +0000 (11:56 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=12497

Signed-off-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/descriptor.c

index fb2854438e1e95908f777a8e6d24e40763ceebe9..7070affa6459c5f12a1515dd79bffbe10fb0cf0b 100644 (file)
@@ -876,6 +876,9 @@ static int descriptor_modify(struct ldb_module *module, struct ldb_request *req)
                        return ldb_oom(ldb);
                }
 
+               /*
+                * Force SD propagation on children of this record
+                */
                ret = dsdb_module_schedule_sd_propagation(module, nc_root,
                                                          dn, false);
                if (ret != LDB_SUCCESS) {
@@ -966,6 +969,10 @@ static int descriptor_rename(struct ldb_module *module, struct ldb_request *req)
                        return ldb_oom(ldb);
                }
 
+               /*
+                * Force SD propagation on this record (get a new
+                * inherited SD from the potentially new parent
+                */
                ret = dsdb_module_schedule_sd_propagation(module, nc_root,
                                                          newdn, true);
                if (ret != LDB_SUCCESS) {