diff options
author | Karolin Seeger <kseeger@samba.org> | 2008-08-27 13:23:20 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2008-08-27 13:31:34 +0200 |
commit | fe72dff67e2ea71caa15564cb1f4e29c26edb90c (patch) | |
tree | b9790883b052ac4ace9e8bed8eb5845424f19450 /source/lib/ldb | |
parent | 574719548feeef5180e4c8280ae024459df384dd (diff) | |
download | samba-fe72dff67e2ea71caa15564cb1f4e29c26edb90c.tar.gz samba-fe72dff67e2ea71caa15564cb1f4e29c26edb90c.tar.xz samba-fe72dff67e2ea71caa15564cb1f4e29c26edb90c.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)
Diffstat (limited to 'source/lib/ldb')
-rw-r--r-- | source/lib/ldb/common/ldb.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |