[apparmor] [patch] abstractions/php: adjust PHP7 paths for openSUSE
John Johansen
john.johansen at canonical.com
Wed Dec 7 11:46:15 UTC 2016
On 12/07/2016 03:00 AM, Christian Boltz wrote:
> Hello,
>
> openSUSE uses "php7" (not just "php") in several paths, so we should
> also allow that.
>
>
> I propose this patch for trunk, 2.10 and 2.9.
Acked-by: John Johansen <john.johansen at canonical.com>
>
>
> [ php7-paths.diff ]
>
> === modified file 'profiles/apparmor.d/abstractions/php'
> --- profiles/apparmor.d/abstractions/php 2016-12-07 10:45:32 +0000
> +++ profiles/apparmor.d/abstractions/php 2016-12-07 10:56:22 +0000
> @@ -11,23 +11,23 @@
> # ------------------------------------------------------------------
>
> # shared snippets for config files
> - /etc/php{,5}/**/ r,
> - /etc/php{,5}/**.ini r,
> + /etc/php{,5,7}/**/ r,
> + /etc/php{,5,7}/**.ini r,
>
> # Xlibs
> /usr/X11R6/lib{,32,64}/lib*.so* mr,
> # php extensions
> - /usr/lib{64,}/php{,5}/*/*.so mr,
> + /usr/lib{64,}/php{,5,7}/*/*.so mr,
>
> # php5 session mmap socket
> - /var/lib/php{,5}/session_mm_* rwlk,
> + /var/lib/php{,5,7}/session_mm_* rwlk,
> # file based session handler
> - /var/lib/php{,5}/sess_* rwlk,
> - /var/lib/php{,5}/sessions/* rwlk,
> + /var/lib/php{,5,7}/sess_* rwlk,
> + /var/lib/php{,5,7}/sessions/* rwlk,
>
> # php libraries
> - /usr/share/php{,5}/ r,
> - /usr/share/php{,5}/** mr,
> + /usr/share/php{,5,7}/ r,
> + /usr/share/php{,5,7}/** mr,
>
> # MySQL extension
> /usr/share/mysql/** r,
>
>
>
>
> Regards,
>
> Christian Boltz
>
>
>
More information about the AppArmor
mailing list