tmp
This commit is contained in:
parent
aafc7adce9
commit
b63d93174f
5 changed files with 403 additions and 0 deletions
35
net-im/mautrix-whatsapp-bin/files/mautrix-whatsapp.service
Normal file
35
net-im/mautrix-whatsapp-bin/files/mautrix-whatsapp.service
Normal file
|
@ -0,0 +1,35 @@
|
|||
[Unit]
|
||||
Description=mautrix-signal bridge
|
||||
|
||||
[Service]
|
||||
Type=exec
|
||||
User=mautrix-signal-bin
|
||||
WorkingDirectory=/opt/mautrix-signal
|
||||
ExecStart=/opt/mautrix-signal/mautrix-signal
|
||||
Restart=on-failure
|
||||
RestartSec=30s
|
||||
|
||||
# Optional hardening to improve security
|
||||
ReadWritePaths=/opt/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
|
Loading…
Add table
Add a link
Reference in a new issue