[lxc-devel] [lxd/master] lxd/apparmor/dnsmasq: Add binary for nesting

stgraber on Github lxc-bot at linuxcontainers.org
Sun Aug 9 17:51:43 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 370 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200809/c9da56b5/attachment.bin>
-------------- next part --------------
From 4bae288846ed859d96e01c8629b2703895a37fba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Sun, 9 Aug 2020 13:51:09 -0400
Subject: [PATCH] lxd/apparmor/dnsmasq: Add binary for nesting
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Closes #7748

Signed-off-by: St├ęphane Graber <stgraber at ubuntu.com>
---
 lxd/apparmor/network_dnsmasq.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lxd/apparmor/network_dnsmasq.go b/lxd/apparmor/network_dnsmasq.go
index ca8566dab4..ea37daf863 100644
--- a/lxd/apparmor/network_dnsmasq.go
+++ b/lxd/apparmor/network_dnsmasq.go
@@ -49,6 +49,10 @@ profile "{{ .name }}" flags=(attach_disconnected,mediate_deleted) {
 
 {{- if .snap }}
 
+  # The binary itself (for nesting)
+  /snap/lxd/current/bin/dnsmasq           mr,
+  /snap/lxd/*/bin/dnsmasq                 mr,
+
   # Snap-specific libraries
   /snap/lxd/current/lib/**.so*            mr,
   /snap/lxd/*/lib/**.so*                  mr,


More information about the lxc-devel mailing list