The branch, v3-2-test has been updated
       via  9f1bb27bf566069dab48eea125c22a5e20849774 (commit)
      from  7459ec6434372d19599921dd66d2d3f07a06675e (commit)

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=v3-2-test


- Log -----------------------------------------------------------------
commit 9f1bb27bf566069dab48eea125c22a5e20849774
Author: Jeremy Allison <[EMAIL PROTECTED]>
Date:   Wed Aug 27 11:30:02 2008 -0700

    Be explicit about setting perms for the ldb. Helps others who may use this 
api.
    Jeremy.

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

Summary of changes:
 source/groupdb/mapping_ldb.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source/groupdb/mapping_ldb.c b/source/groupdb/mapping_ldb.c
index ce65d7c..7ce879f 100644
--- a/source/groupdb/mapping_ldb.c
+++ b/source/groupdb/mapping_ldb.c
@@ -60,6 +60,9 @@ static bool init_group_mapping(void)
        ldb = ldb_init(NULL);
        if (ldb == NULL) goto failed;
 
+       /* Ensure this db is created read/write for root only. */
+       ldb_set_create_perms(ldb, 0600);
+
        existed = file_exist(db_path, NULL);
 
        if (lp_parm_bool(-1, "groupmap", "nosync", False)) {


-- 
Samba Shared Repository

Reply via email to