summarylogtreecommitdiffstats
path: root/matrix-wechat.service
blob: 5e352b34d746cb0754b250231f58a7a60b326fee (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
[Unit]
Description=Matrix-wechat bridge

[Service]
Type=exec
WorkingDirectory=/etc/matrix-wechat
ExecStart=/usr/bin/matrix-wechat -c /etc/matrix-wechat/config.yaml

# Optional hardening to improve security
ReadWritePaths=/etc/matrix-wechat
LogsDirectory=matrix-wechat
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