summarylogtreecommitdiffstats
path: root/mx-puppet-slack.service
blob: cd27362b09b2e4423e2359bef6547287a535450b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
[Unit]
Description=Matrix-Slack puppeting bridge
After=network-online.target

[Service]
ExecStart=node /usr/lib/node_modules/mx-puppet-slack/build/index.js \
	-c /etc/mx-puppet-slack/config.yaml \
	-f /etc/mx-puppet-slack/registration.yaml
User=mx-puppet-slack
WorkingDirectory=~

LockPersonality=yes
NoNewPrivileges=true
PrivateDevices=true
PrivateTmp=true
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=no
ProtectHostname=yes
ProtectSystem=full
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
RemoveIPC=true
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@resources @privileged

ReadWritePaths=/var/lib/mx-puppet-slack

[Install]
WantedBy=multi-user.target