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 FWUPD_HOSTDIR: /var/lib/snapd/hostfs
fwupdmgr: fwupdmgr:
command: fwupdmgr.wrapper command: fwupdmgr.wrapper
plugs: [fwupdmgr, network, polkit] plugs: [fwupdmgr, network, polkit, shutdown]
completer: completer:
share/bash-completion/completions/fwupdmgr share/bash-completion/completions/fwupdmgr
fwupdagent: fwupdagent: