2010-08-19 09:35:33 +00:00
|
|
|
[Unit]
|
2021-09-08 14:15:00 +00:00
|
|
|
Description=Console Mouse Manager
|
2020-06-24 21:16:38 +00:00
|
|
|
ConditionVirtualization=!container
|
2010-08-19 09:35:33 +00:00
|
|
|
|
|
|
|
# This could probably benefit from socket activation, but honestly I think it
|
|
|
|
# is time for gpm to go away, and hence I am not planning to spend the time
|
|
|
|
# to add socket activation here.
|
|
|
|
|
|
|
|
[Service]
|
2021-09-08 14:15:00 +00:00
|
|
|
ExecStart=gpm -m /dev/input/mice -t exps2
|
2010-10-25 11:05:15 +00:00
|
|
|
Type=forking
|
2019-03-24 19:01:50 +00:00
|
|
|
PIDFile=/run/gpm.pid
|
2010-08-19 09:35:33 +00:00
|
|
|
|
2021-09-08 14:15:00 +00:00
|
|
|
ProtectSystem=full
|
|
|
|
ProtectHome=yes
|
|
|
|
ProtectProc=invisible
|
|
|
|
ProtectControlGroups=yes
|
|
|
|
ProtectKernelTunables=yes
|
|
|
|
PrivateNetwork=yes
|
|
|
|
CapabilityBoundingSet=CAP_DAC_OVERRIDE CAP_SYS_ADMIN
|
|
|
|
DeviceAllow=char-tty
|
|
|
|
DeviceAllow=char-input
|
|
|
|
SystemCallFilter=@basic-io @io-event @network-io @file-system @process ioctl
|
|
|
|
SystemCallArchitectures=native
|
|
|
|
SystemCallErrorNumber=EPERM
|
|
|
|
RestrictAddressFamilies=AF_UNIX
|
|
|
|
|
|
|
|
# Note that "special commands" are disallowed by default.
|
|
|
|
# To enable, add '-S' to ExecStart= line, and tweak the SystemCallFilter= as appropriate.
|
|
|
|
|
2010-08-19 09:35:33 +00:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|