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