spiegel-keyman/linux/keyman-system-service/resources/systemd-keyman.service
Eberhard Beilharz fc79e38cc4
maint(linux): fix lintian warnings
This addresses comments from Debian review of the package.
2025-05-13 20:07:32 +02:00

52 lines
987 B
Desktop File

# 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=/usr/libexec/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