The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/7999
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) ===
From 9165a2c1baacd875522cab545fbe70257a18b371 Mon Sep 17 00:00:00 2001 From: Thomas Hipp <thomas.h...@canonical.com> Date: Thu, 8 Oct 2020 15:11:57 +0200 Subject: [PATCH] lxd/apparmor: Fix devPaths in QEMU profile Use the devPaths instead of inst.DevPaths(), as the former evaluates symlinks. Signed-off-by: Thomas Hipp <thomas.h...@canonical.com> --- lxd/apparmor/instance.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd/apparmor/instance.go b/lxd/apparmor/instance.go index 77d266befd..6fd1a2a11e 100644 --- a/lxd/apparmor/instance.go +++ b/lxd/apparmor/instance.go @@ -176,7 +176,7 @@ func instanceProfile(state *state.State, inst instance) (string, error) { } err = qemuProfileTpl.Execute(sb, map[string]interface{}{ - "devPaths": inst.DevPaths(), + "devPaths": devPaths, "exePath": util.GetExecPath(), "libraryPath": strings.Split(os.Getenv("LD_LIBRARY_PATH"), ":"), "logPath": inst.LogPath(),
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel