File tree 1 file changed +19
-1
lines changed
1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 50
50
export SLACK_TZ_BOT_TOKEN="${ cfg . slackBotToken } "
51
51
${ cfg . package } /bin/tzbot-exe --config ${ pkgs . writeText "config.yml" ( builtins . toJSON cfg . botConfig ) }
52
52
'' ;
53
+
53
54
startLimitBurst = mkDefault 5 ;
54
55
startLimitIntervalSec = mkDefault 300 ;
55
- serviceConfig = {
56
+ serviceConfig = withHardeningProfile hardeningProfiles . backend {
56
57
User = "tzbot" ;
57
58
Group = "tzbot" ;
58
59
StateDirectory = "tzbot" ;
59
60
Restart = mkDefault "on-failure" ;
60
61
RestartSec = mkDefault 10 ;
62
+
63
+ SystemCallFilter = [
64
+ "~@clock"
65
+ "~@debug"
66
+ "~@module"
67
+ "~@mount"
68
+ "~@raw-io"
69
+ "~@reboot"
70
+ "~@swap"
71
+ "~@privileged"
72
+ "~@resources"
73
+ "~@cpu-emulation"
74
+ "~@obsolete"
75
+
76
+ # override hardening profile
77
+ "set_mempolicy"
78
+ ] ;
61
79
} ;
62
80
} ;
63
81
users . users . tzbot = {
You can’t perform that action at this time.
0 commit comments