blob: 16dcee5ea259336fb4cf447db25956950a1ab35a (
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
34
35
36
37
38
|
[Unit]
Description=Daemon for power management
Documentation=man:upowerd(8)
[Service]
Type=dbus
BusName=org.freedesktop.UPower
ExecStart=@libexecdir@/upowerd
Restart=on-failure
# Filesystem lockdown
ProtectSystem=strict
# Needed by keyboard backlight support
ProtectKernelTunables=false
ProtectControlGroups=true
ReadWritePaths=@historydir@
StateDirectory=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
|