This patch adds /var/www/html to abstractions/web-data, which is the path used
for document root on Debian and its derivatives[1]. Nominated for 2.8.

[1] The document root used to be /var/www for Debian and its derivatives, but
    this was changed recently. We could use /var/www, but I erred on the side of
    caution here since we can't predict what else an admin will put under
    /var/www now that document root is /var/www/html

-- 
Jamie Strandboge                 http://www.ubuntu.com/
Origin: Jamie Strandboge <[email protected]>
Description: add /var/www/html to abstractions/web-data, which is the path
 used on Debian and its derivatives
Bug-Ubuntu: https://launchpad.net/bugs/1285653
Forwarded: yes

=== modified file 'profiles/apparmor.d/abstractions/web-data'
--- profiles/apparmor.d/abstractions/web-data	2010-12-20 20:29:10 +0000
+++ profiles/apparmor.d/abstractions/web-data	2014-02-27 14:25:11 +0000
@@ -1,6 +1,7 @@
 # ------------------------------------------------------------------
 #
 #    Copyright (C) 2002-2006 Novell/SUSE
+#    Copyright (C) 2014 Canonical Ltd
 #
 #    This program is free software; you can redistribute it and/or
 #    modify it under the terms of version 2 of the GNU General Public
@@ -19,3 +20,6 @@
 
   /srv/www/rails/*/public/ r,
   /srv/www/rails/*/public/** r,
+
+  /var/www/html/ r,
+  /var/www/html/** r,

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
AppArmor mailing list
[email protected]
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/apparmor

Reply via email to