spiegel-keyman/linux/keyman-system-service/resources/systemd-keyman.service.in
Eberhard Beilharz 8e4e92067d
fix(linux): configurable path in .service file when using basu
This makes the path in `com.keyman.SystemService1.service`
configurable when using basu (e.g. Gentoo Linux).
2025-05-19 09:46:41 +02:00

52 lines
987 B
SYSTEMD

# systemd service file
# /usr/lib/systemd/system/systemd-keyman.service
# See https://stackoverflow.com/a/31725112
[Unit]
Description=Keyman System Service
Documentation=https://github.com/keymanapp/keyman/tree/master/linux/keyman-system-service
[Service]
Type=dbus
BusName=com.keyman.SystemService1
ExecStart=@LIBEXECDIR@/keyman-system-service
Restart=on-failure
# Filesystem lockdown
ProtectSystem=strict
ProtectKernelTunables=true
ProtectControlGroups=true
ReadWritePaths=/dev/input/
PrivateTmp=true
# Network
PrivateNetwork=true
IPAddressDeny=any
RestrictAddressFamilies=AF_UNIX
# Execute Mappings
MemoryDenyWriteExecute=true
# Modules
ProtectKernelModules=true
# Real-time
RestrictRealtime=true
# Privilege escalation
NoNewPrivileges=true
# Capabilities
CapabilityBoundingSet=
# System call interfaces
LockPersonality=yes
SystemCallArchitectures=native
SystemCallFilter=@system-service
# Namespaces
PrivateUsers=yes
RestrictNamespaces=yes
# Locked memory
LimitMEMLOCK=0