mirror of
https://github.com/GrapheneOS/matrix.grapheneos.org.git
synced 2024-10-01 04:45:34 -04:00
28c063bdc2
This isn't useful due to PrivateIPC=true but there's no harm in including it to satisfy the security linter.
44 lines
967 B
Desktop File
44 lines
967 B
Desktop File
[Unit]
|
|
Description=mjolnir bot
|
|
After=synapse.service
|
|
|
|
[Service]
|
|
CapabilityBoundingSet=
|
|
Environment=NODE_ENV=production
|
|
ExecStart=/usr/bin/node /opt/mjolnir/lib/index.js
|
|
IPAddressDeny=any
|
|
IPAddressAllow=localhost
|
|
LockPersonality=true
|
|
NoNewPrivileges=true
|
|
PrivateDevices=true
|
|
PrivateIPC=true
|
|
PrivateTmp=true
|
|
PrivateUsers=true
|
|
ProcSubset=pid
|
|
ProtectClock=true
|
|
ProtectControlGroups=true
|
|
ProtectHome=true
|
|
ProtectHostname=true
|
|
ProtectKernelLogs=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelTunables=true
|
|
ProtectProc=invisible
|
|
ProtectSystem=strict
|
|
ReadWritePaths=/var/lib/mjolnir
|
|
RemoveIPC=true
|
|
Restart=on-failure
|
|
RestartSec=5s
|
|
RestrictAddressFamilies=AF_INET6
|
|
RestrictNamespaces=true
|
|
RestrictRealtime=true
|
|
RestrictSUIDSGID=true
|
|
SystemCallArchitectures=native
|
|
SystemCallFilter=@system-service pkey_mprotect pkey_alloc pkey_free
|
|
SystemCallFilter=~@privileged @resources @obsolete
|
|
UMask=0077
|
|
User=mjolnir
|
|
WorkingDirectory=/var/lib/mjolnir
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|