apparmor.d/profiles/usr.sbin.apt-cacher-ng

39 lines
957 B
Text
Raw Normal View History

# Author: Felix Geyer <debfx@ubuntu.com>
@{APT_CACHER_NG_CACHE_DIR}=/var/cache/apt-cacher-ng
2021-03-13 09:47:36 +01:00
#include <tunables/global>
2021-03-13 09:47:36 +01:00
profile apt-cacher-ng /usr/sbin/apt-cacher-ng {
#include <abstractions/base>
#include <abstractions/nameservice>
#include <abstractions/openssl>
#include <abstractions/user-tmp>
/etc/apt-cacher-ng/ r,
/etc/apt-cacher-ng/** r,
/etc/hosts.{deny,allow} r,
2020-10-25 10:23:34 +01:00
/usr/sbin/apt-cacher-ng mr,
/var/lib/apt-cacher-ng/** r,
/{,var/}run/apt-cacher-ng/* rw,
@{APT_CACHER_NG_CACHE_DIR}/ r,
@{APT_CACHER_NG_CACHE_DIR}/** rw,
/var/log/apt-cacher-ng/ r,
/var/log/apt-cacher-ng/* rw,
/{,var/}run/systemd/notify w,
/{usr/,}bin/dash ixr,
/{usr/,}bin/ed ixr,
/{usr/,}bin/red ixr,
/{usr/,}bin/sed ixr,
/usr/lib/apt-cacher-ng/acngtool ixr,
2021-03-13 09:47:36 +01:00
# used by libevent
@{PROC}/sys/kernel/random/uuid r,
# Site-specific additions and overrides. See local/README for details.
2021-03-13 09:47:36 +01:00
#include <local/usr.sbin.apt-cacher-ng>
}