Skip to content

Commit 2c2bb50

Browse files
keesnikic
authored andcommitted
sapi/fpm/config.m4: check for libapparmor's aa_change_profile()
The fpm code actually uses aa_change_profile(), not change_hat(). Test for the correct function. (libapparmor always has both, so this is just a correctness fix.) Closes GH-6037.
1 parent 5c18ee5 commit 2c2bb50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/fpm/config.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ if test "$PHP_FPM" != "no"; then
571571

572572
if test "x$PHP_FPM_APPARMOR" != "xno" ; then
573573
AC_CHECK_HEADERS([sys/apparmor.h])
574-
AC_CHECK_LIB(apparmor, change_hat, [
574+
AC_CHECK_LIB(apparmor, aa_change_profile, [
575575
PHP_ADD_LIBRARY(apparmor)
576576
AC_DEFINE(HAVE_APPARMOR, 1, [ AppArmor confinement available ])
577577
],[

0 commit comments

Comments
 (0)