blob: 883865570d35f938d61d34a10fa24c1e21821c4e (
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
|
[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
ProtectKernelTunables=true
ProtectControlGroups=true
ReadWritePaths=@historydir@
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
|