浏览代码

allow suPHP to be further adjusted under build-time

Ralf S. Engelschall 20 年之前
父节点
当前提交
3d491a3939
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      apache/apache.spec

+ 8 - 1
apache/apache.spec

@@ -76,6 +76,8 @@ Release:      20050907
 %option       with_suphp                no
 %option       with_suphp_caller         %{l_nusr}
 %option       with_suphp_phpcgi         %{l_prefix}/cgi/php
+%option       with_suphp_ugid_mode      paranoid
+%option       with_suphp_ugid_check     yes
 
 #   package options (additionally used Apache modules; can be enabled without thinking)
 %option       with_mod_ssl              no
@@ -1005,7 +1007,12 @@ AutoReqProv:  no
           --with-apxs="" \
           --with-apache-user=%{with_suphp_caller} \
           --with-php=%{with_suphp_phpcgi} \
-          --with-logfile=%{l_prefix}/var/apache/log/suphp.log
+          --with-logfile=%{l_prefix}/var/apache/log/suphp.log \
+%if "%{with_suphp_ugid_check}" == "no"
+          --disable-checkuid \
+          --disable-checkgid \
+%endif
+          --with-setid-mode=%{with_suphp_ugid_mode}
       %{l_make} %{l_mflags -O}
     ) || exit $?
 %endif