i2pd/contrib/apparmor/usr.sbin.i2pd

37 lines
867 B
Plaintext
Raw Normal View History

2018-01-06 03:48:51 +00:00
# Basic profile for i2pd
2017-02-10 18:51:19 +00:00
# Should work without modifications with Ubuntu/Debian packages
# Author: Darknet Villain <supervillain@riseup.net>
#
#include <tunables/global>
/usr/sbin/i2pd {
#include <abstractions/base>
network inet dgram,
network inet stream,
network inet6 dgram,
network inet6 stream,
network netlink raw,
/etc/gai.conf r,
/etc/host.conf r,
/etc/hosts r,
/etc/nsswitch.conf r,
/etc/resolv.conf r,
2017-02-10 18:51:19 +00:00
/run/resolvconf/resolv.conf r,
2018-06-16 08:59:54 +00:00
/run/systemd/resolve/stub-resolv.conf r,
2017-02-10 18:51:19 +00:00
# path specific (feel free to modify if you have another paths)
/etc/i2pd/** r,
/run/i2pd/i2pd.pid rwk,
2017-02-10 18:51:19 +00:00
/var/lib/i2pd/** rw,
2018-01-29 00:47:43 +00:00
/var/log/i2pd/i2pd.log w,
/var/run/i2pd/i2pd.pid rwk,
2017-02-10 18:51:19 +00:00
/usr/sbin/i2pd mr,
2018-01-29 00:47:43 +00:00
/usr/share/i2pd/** r,
2017-02-10 18:51:19 +00:00
2018-01-29 01:13:33 +00:00
# user homedir (if started not by init.d or systemd)
2018-01-30 14:30:01 +00:00
owner @{HOME}/.i2pd/ rw,
owner @{HOME}/.i2pd/** rwk,
2017-02-10 18:51:19 +00:00
}