From 54d938e7c5f3d8350267c616ee42388b26e7471a Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Sat, 13 Nov 2021 11:14:58 +0100 Subject: [PATCH] Enable AppArmor (--with-fpm-apparmor) only on Linux archs --- debian/rules | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/debian/rules b/debian/rules index 192e38bfe..69374a7e8 100755 --- a/debian/rules +++ b/debian/rules @@ -124,6 +124,7 @@ endif ifeq ($(DEB_HOST_ARCH_OS),linux) CONFIGURE_SYSTEMD := --with-fpm-systemd + CONFIGURE_APPARMOR := --with-fpm-apparmor endif # specify some options to our patch system @@ -235,12 +236,13 @@ export fpm_config = \ --prefix=/usr --enable-fpm --enable-cli --disable-cgi --disable-phpdbg \ --sysconfdir=/etc/php/$(PHP_NAME_VERSION)/fpm \ --with-fpm-user=www-data --with-fpm-group=www-data \ - --with-fpm-acl --with-fpm-apparmor \ + --with-fpm-acl \ --with-config-file-path=/etc/php/$(PHP_NAME_VERSION)/fpm \ --with-config-file-scan-dir=/etc/php/$(PHP_NAME_VERSION)/fpm/conf.d \ $(COMMON_CONFIG) \ --with-libevent-dir=/usr \ - $(CONFIGURE_SYSTEMD) + $(CONFIGURE_SYSTEMD) \ + $(CONFIGURE_APPARMOR) export phpdbg_config = \ --prefix=/usr --enable-phpdbg --enable-cli --disable-cgi \ -- GitLab