From b8e2b347ac1744ea77069c65572f8989e77a68c6 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Jul 03 2017 17:20:40 +0000 Subject: wiki AppArmor profile: allow *.svg files --- diff --git a/salt/profile/wiki/files/httpd2-prefork.apparmor b/salt/profile/wiki/files/httpd2-prefork.apparmor index 727b2bb..1c94a7a 100644 --- a/salt/profile/wiki/files/httpd2-prefork.apparmor +++ b/salt/profile/wiki/files/httpd2-prefork.apparmor @@ -14,7 +14,7 @@ #include -@{wiki_upload_extensions}=doc docx gif jpg jpeg odp ods odt pdf png ppt pptx sxc sxw xls xlsx +@{wiki_upload_extensions}=doc docx gif jpg jpeg odp ods odt pdf png ppt pptx svg sxc sxw xls xlsx profile httpd2-prefork /usr/sbin/httpd{,2}-prefork flags=(complain,attach_disconnected) { #include @@ -128,6 +128,7 @@ profile httpd2-prefork /usr/sbin/httpd{,2}-prefork flags=(complain,attach_discon /srv/www/{{wiki}}.opensuse.org/public/ r, /srv/www/{{wiki}}.opensuse.org/public/** r, /srv/www/{{wiki}}.opensuse.org/public/images/**.@{wiki_upload_extensions} rw, + /srv/www/{{wiki}}.opensuse.org/public/images/temp/svg_*/ rw, /srv/www/{{wiki}}.opensuse.org/tmp/php* rw, /srv/www/{{wiki}}.opensuse.org/secrets.php r, /srv/www/{{wiki}}.opensuse.org/wiki_settings.php r,