summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKarolin Seeger <kseeger@samba.org>2008-08-27 13:23:20 +0200
committerKarolin Seeger <kseeger@samba.org>2008-08-27 13:32:09 +0200
commitdee5f093570a6586f4cf6d9dec4b002c33160862 (patch)
treeda50188b2e8d760978e43d28dba32387c539035f
parent9a89e30229442ae6336328c9e37b3121c188df01 (diff)
downloadsamba-dee5f093570a6586f4cf6d9dec4b002c33160862.tar.gz
samba-dee5f093570a6586f4cf6d9dec4b002c33160862.tar.bz2
samba-dee5f093570a6586f4cf6d9dec4b002c33160862.zip
ldb: Fix permissions of new ldg files.
This one fixes together with 2eaf4ed62 bug #5715 and CVE-2008-3789. Thanks to Steve Langasek <vorlon@debian.org> for reporting! Karolin (cherry picked from commit b666d0a4b597218f5f5020bf36d80d84dcbf7259) (This used to be commit 73f54df7fedc8f0db022f902100fd5eb1b629fb2)
-rw-r--r--source3/lib/ldb/common/ldb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/ldb/common/ldb.c b/source3/lib/ldb/common/ldb.c
index e469c49399..743711b967 100644
--- a/source3/lib/ldb/common/ldb.c
+++ b/source3/lib/ldb/common/ldb.c
@@ -51,7 +51,7 @@ struct ldb_context *ldb_init(void *mem_ctx)
}
ldb_set_utf8_default(ldb);
- ldb_set_create_perms(ldb, 0666);
+ ldb_set_create_perms(ldb, 0600);
return ldb;
}