The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7753

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
Closes #7748

Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 4bae288846ed859d96e01c8629b2703895a37fba Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@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 <stgra...@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,
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to