[apparmor] [Merge] lp:~debfx/apparmor-profiles/master into lp:apparmor-profiles
Steve Beattie
steve at nxnw.org
Wed Nov 30 02:08:16 UTC 2011
Hi,
The apt-cacher-ng profile got merged, for good reason, but I'd like to
propose the following patch to it. It allows specifying an alternate
data storage location for the apt-cacher-ng meta information and cached
packages (my personal installation has it in an alternate location).
=== modified file 'ubuntu/12.04/usr.sbin.apt-cacher-ng'
--- ubuntu/12.04/usr.sbin.apt-cacher-ng 2011-11-29 23:33:57 +0000
+++ ubuntu/12.04/usr.sbin.apt-cacher-ng 2011-11-30 00:14:55 +0000
@@ -1,5 +1,7 @@
# Author: Felix Geyer <debfx at ubuntu.com>
+@{APT_CACHE_DIR}=/var/cache/apt-cacher-ng
+
#include <tunables/global>
/usr/sbin/apt-cacher-ng {
@@ -10,8 +12,8 @@
/etc/apt-cacher-ng/ r,
/etc/apt-cacher-ng/** r,
/{,var/}run/apt-cacher-ng/* rw,
- /var/cache/apt-cacher-ng/ r,
- /var/cache/apt-cacher-ng/** rw,
+ @{APT_CACHE_DIR}/ r,
+ @{APT_CACHE_DIR}/** rw,
/var/log/apt-cacher-ng/ r,
/var/log/apt-cacher-ng/* rw,
--
Steve Beattie
<sbeattie at ubuntu.com>
http://NxNW.org/~steve/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/apparmor/attachments/20111129/48c0340f/attachment.pgp>
More information about the AppArmor
mailing list