summarylogtreecommitdiffstats
path: root/evdev-proxy.service
blob: 7547befbf152c6020abcd47537d1e248ce9c5eaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
[Unit]
Description=Evdev proxy device daemon
After=systemd-udevd.service systemd-udev-settle.service
Before=libvirtd.service
Wants=multi-user.target

[Service]
Type=simple
ExecStart=/usr/bin/evdev-proxy
Restart=always
RestartSec=2
Environment=RUST_BACKTRACE=1

MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
# Breaks AF_NETLINK connectivity to udev
# PrivateNetwork=yes

ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectKernelLogs=yes
ProtectSystem=strict

RestrictAddressFamilies=AF_NETLINK
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes

[Install]
WantedBy=multi-user.target