Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] Update Apache2 package
@ 2015-10-25 11:12 Geoffrey Ragot
  2015-12-20 14:18 ` Thomas Petazzoni
  0 siblings, 1 reply; 2+ messages in thread
From: Geoffrey Ragot @ 2015-10-25 11:12 UTC (permalink / raw)
  To: buildroot

Currently, apache2 package does not allow
to use -DBIG_SECURITY_HOLE flag.
This flag allow httpd daemon to run as root.
It should be the responsability of the user
to take this decision.
This patch add an option to set this flag.
Previous behavior unchanged.

Signed-off-by: Geoffrey Ragot <geoffrey.ragot@gmail.com>
---
 package/apache/Config.in | 5 +++++
 package/apache/apache.mk | 4 ++++
 2 files changed, 9 insertions(+)

diff --git a/package/apache/Config.in b/package/apache/Config.in
index 0814a17..ff0e822 100644
--- a/package/apache/Config.in
+++ b/package/apache/Config.in
@@ -17,3 +17,8 @@ config BR2_PACKAGE_APACHE
 comment "apache needs a toolchain w/ dynamic library, threads"
 	depends on BR2_USE_MMU
 	depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
+
+if BR2_PACKAGE_APACHE
+config BR2_PACKAGE_APACHE_ALLOW_ROOT
+	bool "Allow apache running as root"
+endif
diff --git a/package/apache/apache.mk b/package/apache/apache.mk
index daf8fe2..2e935b5 100644
--- a/package/apache/apache.mk
+++ b/package/apache/apache.mk
@@ -35,6 +35,10 @@ APACHE_CONF_OPTS = \
 	--disable-lua \
 	--disable-luajit
 
+ifeq ($(BR2_PACKAGE_APACHE_ALLOW_ROOT),y)
+APACHE_CONF_OPTS += CFLAGS="$(TARGET_CFLAGS) -DBIG_SECURITY_HOLE"
+endif
+
 ifeq ($(BR2_ARCH_HAS_ATOMICS),y)
 APACHE_CONF_OPTS += --enable-nonportable-atomics=yes
 endif
-- 
2.6.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-12-20 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-25 11:12 [Buildroot] [PATCH 1/1] Update Apache2 package Geoffrey Ragot
2015-12-20 14:18 ` Thomas Petazzoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox