[apparmor] [patch] abstractions/php: adjust PHP7 paths for openSUSE
Christian Boltz
apparmor at cboltz.de
Wed Dec 7 11:00:13 UTC 2016
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.
[ 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
--
> Antwort: AW: Antwort: AW: Antwort: AW:
Arrgl ... <mit Schaum vor dem Mund nach hinten umkipp>
[Martin Wilhelm Leidig in suse-linux]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20161207/785ee6ff/attachment.pgp>
More information about the AppArmor
mailing list