summarylogtreecommitdiffstats
path: root/mautrix-signal.service
blob: 5edb7aef10c7adc89a8231836e5679720762bff6 (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
36
[Unit]
Description=mautrix-signal bridge

[Service]
Type=exec
User=mautrix-signal
WorkingDirectory=/var/lib/mautrix-signal
ExecStart=/usr/bin/mautrix-signal -c /etc/mautrix-signal/config.yaml
Restart=on-failure
RestartSec=30s

# Optional hardening to improve security
ReadWritePaths=/var/lib/mautrix-signal
NoNewPrivileges=yes
MemoryDenyWriteExecute=true
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectHostname=true
ProtectKernelModules=true
PrivateUsers=true
ProtectClock=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service

[Install]
WantedBy=multi-user.target