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,