From 3a4dc1f885f20535e6fbceb48ec24e873e94b166 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 28 Aug 2020 22:23:13 +0200 Subject: [PATCH] php-fpm profile: adjust /run paths Thanks to Darix for pointing out that openSUSE now uses /run/php-fpm/ Also switch to using @{run}. --- profiles/apparmor.d/usr.sbin.php-fpm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/profiles/apparmor.d/usr.sbin.php-fpm b/profiles/apparmor.d/usr.sbin.php-fpm index 4f77676d7..88f656515 100644 --- a/profiles/apparmor.d/usr.sbin.php-fpm +++ b/profiles/apparmor.d/usr.sbin.php-fpm @@ -36,8 +36,8 @@ profile php-fpm /usr/sbin/php-fpm* flags=(attach_disconnected) { /var/log/php*-fpm.log rw, # we need to be able to create all sockets - /run/php/php*-fpm.pid rw, - /run/php/php*-fpm.sock rwlk, + @{run}/php{,-fpm}/php*-fpm.pid rw, + @{run}/php{,-fpm}/php*-fpm.sock rwlk, # to reload /usr/sbin/php-fpm* rix,