Index: /server/common/patches/httpd-suexec-scripts.patch
===================================================================
--- /server/common/patches/httpd-suexec-scripts.patch	(revision 405)
+++ /server/common/patches/httpd-suexec-scripts.patch	(revision 406)
@@ -127,17 +127,19 @@
          exit(107);
      }
-@@ -482,6 +533,17 @@
+@@ -482,6 +533,19 @@
          log_err("failed to setuid (%ld: %s)\n", uid, cmd);
          exit(110);
      }
-+    if (uid == 102) {
-+        if (setexeccon("system_u:system_r:signup_t:s0") == -1) {
-+            log_err("failed to setexeccon (%ld: %s) to signup_t\n", uid, cmd);
-+            exit(201);
-+        }
-+    } else {
-+        if (setexeccon("user_u:user_r:user_t:s0") == -1) {
-+            log_err("failed to setexeccon (%ld: %s) to user_t\n", uid, cmd);
-+            exit(202);
++    if (is_selinux_enabled()) {
++        if (uid == 102) {
++            if (setexeccon("system_u:system_r:signup_t:s0") == -1) {
++                log_err("failed to setexeccon (%ld: %s) to signup_t\n", uid, cmd);
++                exit(201);
++            }
++        } else {
++            if (setexeccon("user_u:user_r:user_t:s0") == -1) {
++                log_err("failed to setexeccon (%ld: %s) to user_t\n", uid, cmd);
++                exit(202);
++            }
 +        }
 +    }
