[SCM] Samba Shared Repository - branch master updated

Ralph Böhme slow at samba.org
Wed Sep 22 16:58:01 UTC 2021


The branch, master has been updated
       via  702ebb3d8c8 registry: skip root check when running with uid-wrapper enabled
      from  ec95b3042bf tests/krb5: Add RodcPacEncryptionKey type allowing for RODC PAC signatures

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 702ebb3d8c8d9f7241bb264f9cb2a41a3dc46f32
Author: Ralph Boehme <slow at samba.org>
Date:   Wed Aug 25 09:26:00 2021 +0200

    registry: skip root check when running with uid-wrapper enabled
    
    Currently registry config is not used in the clustered testenv, so currently
    there's no problem. But once we do add that, the check would be triggered.
    
    BUG: https://bugzilla.samba.org/show_bug.cgi?id=14787
    
    Signed-off-by: Ralph Boehme <slow at samba.org>
    Reviewed-by: Michael Adam <obnox at samba.org>
    
    Autobuild-User(master): Ralph Böhme <slow at samba.org>
    Autobuild-Date(master): Wed Sep 22 16:57:25 UTC 2021 on sn-devel-184

-----------------------------------------------------------------------

Summary of changes:
 source3/registry/reg_backend_db.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)


Changeset truncated at 500 lines:

diff --git a/source3/registry/reg_backend_db.c b/source3/registry/reg_backend_db.c
index 423b310fe8a..b1f6425d56a 100644
--- a/source3/registry/reg_backend_db.c
+++ b/source3/registry/reg_backend_db.c
@@ -737,7 +737,7 @@ WERROR regdb_init(void)
          * Clustered Samba can only work as root because we need messaging to
          * talk to ctdb which only works as root.
          */
-        if (lp_clustering() && geteuid() != 0) {
+        if (!uid_wrapper_enabled() && lp_clustering() && geteuid() != 0) {
                 DBG_ERR("Cluster mode requires running as root.\n");
 		return WERR_ACCESS_DENIED;
         }


-- 
Samba Shared Repository



More information about the samba-cvs mailing list