server: create vactune.tdb.X with 0600 permissions
authorStefan Metzmacher <metze@samba.org>
Mon, 23 Nov 2009 14:39:19 +0000 (15:39 +0100)
committerStefan Metzmacher <metze@samba.org>
Wed, 16 Dec 2009 07:03:56 +0000 (08:03 +0100)
metze

server/ctdb_vacuum.c

index 497e62118d7f75e982175724accc609e0512a260..2cbee309186238879f40a1cd0391855a69479977 100644 (file)
@@ -528,7 +528,7 @@ static int update_tuning_db(struct ctdb_db_context *ctdb_db, struct vacuum_data
 
        tune_tdb = tdb_open(vac_dbname, 0,
                            TDB_DISALLOW_NESTING,
-                           O_RDWR|O_CREAT, 0644);
+                           O_RDWR|O_CREAT, 0600);
        if (tune_tdb == NULL) {
                DEBUG(DEBUG_ERR,(__location__ " Failed to create/open %s\n", TUNINGDBNAME));
                talloc_free(tmp_ctx);