38 lines
694 B
SYSTEMD
38 lines
694 B
SYSTEMD
|
|
[Unit]
|
||
|
|
Description=Daemon for power management
|
||
|
|
Documentation=man:upowerd(8)
|
||
|
|
|
||
|
|
[Service]
|
||
|
|
Type=dbus
|
||
|
|
BusName=org.freedesktop.UPower
|
||
|
|
ExecStart=/usr/lib/upower/upowerd
|
||
|
|
Restart=on-failure
|
||
|
|
|
||
|
|
# Filesystem lockdown
|
||
|
|
ProtectSystem=strict
|
||
|
|
# Needed by keyboard backlight support
|
||
|
|
ProtectKernelTunables=false
|
||
|
|
ProtectControlGroups=true
|
||
|
|
ReadWritePaths=/var/lib/upower
|
||
|
|
ProtectHome=true
|
||
|
|
PrivateTmp=true
|
||
|
|
|
||
|
|
# Network
|
||
|
|
# PrivateNetwork=true would block udev's netlink socket
|
||
|
|
RestrictAddressFamilies=AF_UNIX AF_NETLINK
|
||
|
|
|
||
|
|
# Execute Mappings
|
||
|
|
MemoryDenyWriteExecute=true
|
||
|
|
|
||
|
|
# Modules
|
||
|
|
ProtectKernelModules=true
|
||
|
|
|
||
|
|
# Real-time
|
||
|
|
RestrictRealtime=true
|
||
|
|
|
||
|
|
# Privilege escalation
|
||
|
|
NoNewPrivileges=true
|
||
|
|
|
||
|
|
[Install]
|
||
|
|
WantedBy=graphical.target
|