Skip to content

Commit

Permalink
snapcraft.yaml: enable unconfined mode in lxd-support interface
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Murray <[email protected]>
(cherry picked from commit 2f0fcab)
Signed-off-by: Alexander Mikhalitsyn <[email protected]>
  • Loading branch information
alexmurray authored and mihalicyn committed Oct 8, 2024
1 parent 005d249 commit 25ca3a1
Showing 1 changed file with 20 additions and 17 deletions.
37 changes: 20 additions & 17 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ plugs:
interface: content
content: qemu-external-binaries
target: $SNAP/external/qemu
lxd-support-with-unconfined-mode:
interface: lxd-support
enable-unconfined-mode: true

layout:
/usr/share/libdrm:
Expand All @@ -93,7 +96,7 @@ apps:
command: commands/daemon.activate
daemon: oneshot
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe

daemon:
Expand All @@ -108,7 +111,7 @@ apps:
slots:
- lxd
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- network-bind
- system-observe
sockets:
Expand All @@ -122,7 +125,7 @@ apps:
restart-condition: on-failure
daemon: simple
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- network-bind
- system-observe
sockets:
Expand All @@ -134,68 +137,68 @@ apps:
command: commands/lxc
completer: etc/bash_completion.d/snap.lxd.lxc
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe

lxd:
command: commands/lxd
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe

# Sub-commands
buginfo:
command: commands/buginfo
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
check-kernel:
command: commands/lxd-check-kernel
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe

hooks:
connect-plug-ceph-conf:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
disconnect-plug-ceph-conf:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
connect-plug-ovn-certificates:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
disconnect-plug-ovn-certificates:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
connect-plug-ovn-chassis:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
disconnect-plug-ovn-chassis:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
connect-plug-qemu-external:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
disconnect-plug-qemu-external:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe
configure:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- network
- system-observe
remove:
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe

parts:
Expand Down

0 comments on commit 25ca3a1

Please sign in to comment.