ctdb: open the RO tracking db with perms 0600 instead of 0000
[obnox/samba/samba-obnox.git] / ctdb / server / ctdb_ltdb_server.c
index 93e90413d0aeba37933e6feec54cc89b4891ceba..3386bba2c3e482241fc12e66baa1ea05f4b672e2 100644 (file)
@@ -721,7 +721,7 @@ int ctdb_set_db_readonly(struct ctdb_context *ctdb, struct ctdb_db_context *ctdb
        ctdb_db->rottdb = tdb_open(ropath, 
                              ctdb->tunable.database_hash_size, 
                              TDB_NOLOCK|TDB_CLEAR_IF_FIRST|TDB_NOSYNC,
-                             O_CREAT|O_RDWR, 0);
+                             O_CREAT|O_RDWR, 0600);
        if (ctdb_db->rottdb == NULL) {
                DEBUG(DEBUG_CRIT,("Failed to open/create the tracking database '%s'\n", ropath));
                talloc_free(ropath);