server: create tdbs with 0600 permissions in ctdb_local_attach()
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Nov 2009 13:40:17 +0000 (14:40 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:55 +0000 (08:03 +0100)
metze

server/ctdb_ltdb_server.c

index 92228e228782d130991a394e0e7f9f14a130e5cb..ca8fd48a11e8f7ba67d7009a82eb23a200a0a989 100644 (file)
@@ -256,7 +256,7 @@ static int ctdb_local_attach(struct ctdb_context *ctdb, const char *db_name, boo
        ctdb_db->ltdb = tdb_wrap_open(ctdb, ctdb_db->db_path, 
                                      ctdb->tunable.database_hash_size, 
                                      tdb_flags, 
-                                     O_CREAT|O_RDWR, 0666);
+                                     O_CREAT|O_RDWR, 0600);
        if (ctdb_db->ltdb == NULL) {
                DEBUG(DEBUG_CRIT,("Failed to open tdb '%s'\n", ctdb_db->db_path));
                talloc_free(ctdb_db);