From 480cb565537b66a56e41cf605319c05f7e748861 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Fri, 26 Aug 2022 10:35:49 +0000 Subject: [PATCH] Merge profiles: permit php-fpm pid files directly under run/ The upstream php-fpm.conf file carries the following pid file example path: [global] ; Pid file ; Note: the default prefix is @EXPANDED_LOCALSTATEDIR@ ; Default Value: none ;pid = run/php-fpm.pid Add this path to profiles/apparmor.d/php-fpm, alongside the current nested "@{run}/php{,-fpm}/php*-fpm.pid" wildcard. Fixes: https://gitlab.com/apparmor/apparmor/-/issues/267 Suggested-by: Ali Abdallah Signed-off-by: David Disseldorp Closes #267 MR: https://gitlab.com/apparmor/apparmor/-/merge_requests/914 Approved-by: Christian Boltz Merged-by: Christian Boltz (cherry picked from commit d024100efe9998197788880d4abd01843d7425d6) d8533ec8 profiles: permit php-fpm pid files directly under run/ --- profiles/apparmor.d/php-fpm | 1 + 1 file changed, 1 insertion(+) diff --git a/profiles/apparmor.d/php-fpm b/profiles/apparmor.d/php-fpm index 14b3c7195..0dcc8c7df 100644 --- a/profiles/apparmor.d/php-fpm +++ b/profiles/apparmor.d/php-fpm @@ -35,6 +35,7 @@ profile php-fpm /usr/sbin/php-fpm* flags=(attach_disconnected) { # we need to be able to create all sockets @{run}/php{,-fpm}/php*-fpm.pid rw, + @{run}/php*-fpm.pid rw, @{run}/php{,-fpm}/php*-fpm.sock rwlk, # to reload