snap: allow fwupdmgr to shutdown

When installing a capsule, optional reboot is done by fwupdmgr instead
of fwupd. This means fwupdmgr needs the permission to do that.
This commit is contained in:
Valentin David 2023-02-10 13:30:12 +01:00 committed by Mario Limonciello
parent 8aef37fd57
commit c17935acf7

View File

@ -54,7 +54,7 @@ apps:
FWUPD_HOSTDIR: /var/lib/snapd/hostfs
fwupdmgr:
command: fwupdmgr.wrapper
plugs: [fwupdmgr, network, polkit]
plugs: [fwupdmgr, network, polkit, shutdown]
completer:
share/bash-completion/completions/fwupdmgr
fwupdagent: