From: Karolin Seeger Date: Wed, 27 Aug 2008 11:23:20 +0000 (+0200) Subject: ldb: Fix permissions of new ldg files. X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=73f54df7fedc8f0db022f902100fd5eb1b629fb2;p=thirdparty%2Fsamba.git ldb: Fix permissions of new ldg files. This one fixes together with 2eaf4ed62 bug #5715 and CVE-2008-3789. Thanks to Steve Langasek for reporting! Karolin (cherry picked from commit b666d0a4b597218f5f5020bf36d80d84dcbf7259) --- diff --git a/source/lib/ldb/common/ldb.c b/source/lib/ldb/common/ldb.c index e469c49399a..743711b9672 100644 --- a/source/lib/ldb/common/ldb.c +++ b/source/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; }