summaryrefslogtreecommitdiffstats
path: root/wrappers
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2009-09-22 15:47:17 -0600
committerRich Megginson <rmeggins@redhat.com>2009-09-22 16:06:12 -0600
commit60c49ddc2956222468f36be1e5f5a5358fb92774 (patch)
treeab89d017ee54ae385c86169ba393e87fe5b33c4f /wrappers
parent58b0496f82c8fbf30ef9c36f4d7b6c24578522db (diff)
downloadds-60c49ddc2956222468f36be1e5f5a5358fb92774.tar.gz
ds-60c49ddc2956222468f36be1e5f5a5358fb92774.tar.xz
ds-60c49ddc2956222468f36be1e5f5a5358fb92774.zip
Start script hardcodes file permissions mask to 077 (600), so the nsslapd-*log-mode configuration attributes don't work
https://bugzilla.redhat.com/show_bug.cgi?id=495522 Resolves: bug 495522 Bug Description: Start script hardcodes file permissions mask to 077 (600), so the nsslapd-*log-mode configuration attributes don't work Reviewed by: nkinder (Thanks!) Fix Description: Use umask 002 for the directory server process Platforms tested: Fedora 11 x86_64 Flag Day: no Doc impact: no
Diffstat (limited to 'wrappers')
-rw-r--r--wrappers/initscript.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/wrappers/initscript.in b/wrappers/initscript.in
index 9a7835c0..f1663717 100644
--- a/wrappers/initscript.in
+++ b/wrappers/initscript.in
@@ -161,6 +161,7 @@ start() {
# start the directory server in a subshell so that the instance specific
# init config environment will not apply to any other instance
(
+ umask 002 # reset umask to allow logs and other files modes to be explicitly set
[ -f @initconfigdir@/@package_name@-$instance ] && . @initconfigdir@/@package_name@-$instance
$exec -D $instbase/slapd-$instance -i $pidfile -w $startpidfile
)