Use more restrictive settings when running under systemd

This commit is contained in:
Richard Hughes 2016-12-14 10:53:49 +00:00
parent df3aa3bdc9
commit 99b317d4f7

View File

@ -9,4 +9,14 @@ ConditionPathExists=/var/lib/fwupd/pending.db
Type=dbus
BusName=org.freedesktop.fwupd
ExecStart=@servicedir@/fwupd/fwupd
MemoryDenyWriteExecute=yes
NoNewPrivileges=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=full
RestrictAddressFamilies=AF_NETLINK AF_UNIX
RestrictRealtime=yes