Skip to content

Commit

Permalink
Merge pull request canonical#277 from alexmurray/enable-apparmor-unco…
Browse files Browse the repository at this point in the history
…nfined-mode-via-interface-attribute

snapcraft.yaml: enable unconfined mode in lxd-support interface
  • Loading branch information
tomponline authored Jul 1, 2024
2 parents 2252a78 + 2f0fcab commit fc5284c
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: lxd
base: core24
assumes:
- snapd2.39
- snapd2.62
version: git
grade: devel
summary: LXD - container and VM manager
Expand Down Expand Up @@ -71,14 +71,17 @@ plugs:
ovn-chassis:
interface: content
target: "$SNAP_DATA/microovn/chassis"
lxd-support-with-unconfined-mode:
interface: lxd-support
enable-unconfined-mode: true

apps:
# Main commands
activate:
command: commands/daemon.activate
daemon: oneshot
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- system-observe

daemon:
Expand All @@ -91,7 +94,7 @@ apps:
slots:
- lxd
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- network-bind
- system-observe
sockets:
Expand All @@ -105,7 +108,7 @@ apps:
restart-condition: on-failure
daemon: simple
plugs:
- lxd-support
- lxd-support-with-unconfined-mode
- network-bind
- system-observe
sockets:
Expand All @@ -117,60 +120,60 @@ 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
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 fc5284c

Please sign in to comment.