1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

server: create tdbs with 0600 permissions in ctdb_local_attach()

metze

(This used to be ctdb commit 6529a1328b9ec304ad306674651b2a67e4426e23)
This commit is contained in:
Stefan Metzmacher 2009-11-23 14:40:17 +01:00
parent 0c907f4965
commit cda5884854

View 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);