2018-01-06 04:48:51 +01:00
|
|
|
# Basic profile for i2pd
|
2017-02-10 19:51:19 +01:00
|
|
|
# Should work without modifications with Ubuntu/Debian packages
|
|
|
|
# Author: Darknet Villain <supervillain@riseup.net>
|
|
|
|
#
|
|
|
|
#include <tunables/global>
|
|
|
|
|
2020-06-13 22:46:17 +02:00
|
|
|
profile i2pd /{usr/,}sbin/i2pd {
|
2017-02-10 19:51:19 +01:00
|
|
|
#include <abstractions/base>
|
2020-06-13 22:46:17 +02:00
|
|
|
#include <abstractions/openssl>
|
|
|
|
#include <abstractions/nameservice>
|
2017-02-10 19:51:19 +01:00
|
|
|
|
|
|
|
# path specific (feel free to modify if you have another paths)
|
|
|
|
/etc/i2pd/** r,
|
|
|
|
/var/lib/i2pd/** rw,
|
2018-01-29 01:47:43 +01:00
|
|
|
/var/log/i2pd/i2pd.log w,
|
2020-06-13 22:46:17 +02:00
|
|
|
/{var/,}run/i2pd/i2pd.pid rwk,
|
|
|
|
/{usr/,}sbin/i2pd mr,
|
|
|
|
@{system_share_dirs}/i2pd/** r,
|
2017-02-10 19:51:19 +01:00
|
|
|
|
2018-01-29 02:13:33 +01:00
|
|
|
# user homedir (if started not by init.d or systemd)
|
2018-01-30 15:30:01 +01:00
|
|
|
owner @{HOME}/.i2pd/ rw,
|
|
|
|
owner @{HOME}/.i2pd/** rwk,
|
2020-06-13 22:46:17 +02:00
|
|
|
|
|
|
|
#include if exists <local/usr.sbin.i2pd>
|
2017-02-10 19:51:19 +01:00
|
|
|
}
|