瀏覽代碼

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

Rich Megginson 16 年之前
父節點
當前提交
60c49ddc29
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      wrappers/initscript.in

+ 1 - 0
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
                 )