We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3119cde commit 330ebb4Copy full SHA for 330ebb4
module.nix
@@ -50,10 +50,27 @@ in
50
export SLACK_TZ_BOT_TOKEN="${cfg.slackBotToken}"
51
${cfg.package}/bin/tzbot-exe --config ${pkgs.writeText "config.yml" (builtins.toJSON cfg.botConfig)}
52
'';
53
- serviceConfig = {
+ serviceConfig = withHardeningProfile hardeningProfiles.backend {
54
User = "tzbot";
55
Group = "tzbot";
56
StateDirectory = "tzbot";
57
+
58
+ SystemCallFilter = [
59
+ "~@clock"
60
+ "~@debug"
61
+ "~@module"
62
+ "~@mount"
63
+ "~@raw-io"
64
+ "~@reboot"
65
+ "~@swap"
66
+ "~@privileged"
67
+ "~@resources"
68
+ "~@cpu-emulation"
69
+ "~@obsolete"
70
71
+ # override hardening profile
72
+ "set_mempolicy"
73
+ ];
74
};
75
76
users.users.tzbot = {
0 commit comments