mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 00:15:32 +00:00
52 lines
987 B
Desktop File
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
|