Skip to content
This repository was archived by the owner on Dec 10, 2022. It is now read-only.

Commit 6eefd6c

Browse files
author
crypto-universe
committed
feat: Add apparmor profile
1 parent f296908 commit 6eefd6c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

Cargo.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ assets = [
2828
["README.md", "/usr/share/doc/tox-node/README", "644"],
2929
["dpkg/tox-node.service", "/lib/systemd/system/", "644"],
3030
["dpkg/config.yml", "/etc/tox-node/", "644"],
31+
["dpkg/usr.bin.tox-node", "/etc/apparmor.d/", "644"],
3132
]
3233
conf-files = ["/etc/tox-node/config.yml"]
3334
maintainer-scripts = "dpkg/info"

dpkg/usr.bin.tox-node

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#include <tunables/global>
2+
3+
/usr/bin/tox-node {
4+
#include <abstractions/base>
5+
#include <abstractions/nameservice>
6+
7+
/etc/tox-node/config.yml r,
8+
/sys/fs/cgroup/cpu,cpuacct/cpu.cfs_quota_us r,
9+
/usr/bin/tox-node mr,
10+
/var/lib/tox-node/keys r,
11+
owner /proc/*/cgroup r,
12+
owner /proc/*/mountinfo r,
13+
14+
}
15+

0 commit comments

Comments
 (0)