The following pull request was submitted through Github. It can be accessed and reviewed at: https://github.com/lxc/lxd/pull/8214
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) === This allows NSS related files: - nsswitch.conf - passwd - group As well as /proc/version which QEMU apparently accesses sometimes. Signed-off-by: Stéphane Graber <stgra...@ubuntu.com>
From 53127c9b827cac52cc235d3f6b61348ad91f5761 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgra...@ubuntu.com> Date: Fri, 4 Dec 2020 08:44:37 -0500 Subject: [PATCH] lxd/apparmor/qemu: Allow some more files MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This allows NSS related files: - nsswitch.conf - passwd - group As well as /proc/version which QEMU apparently accesses sometimes. Signed-off-by: Stéphane Graber <stgra...@ubuntu.com> --- lxd/apparmor/instance_qemu.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lxd/apparmor/instance_qemu.go b/lxd/apparmor/instance_qemu.go index a1183e27e4..4f7e7104f0 100644 --- a/lxd/apparmor/instance_qemu.go +++ b/lxd/apparmor/instance_qemu.go @@ -40,6 +40,10 @@ profile "{{ .name }}" flags=(attach_disconnected,mediate_deleted) { /usr/share/qemu/** kr, /usr/share/seabios/** kr, owner @{PROC}/@{pid}/task/@{tid}/comm rw, + {{ .rootPath }}/etc/nsswitch.conf r, + {{ .rootPath }}/etc/passwd r, + {{ .rootPath }}/etc/group r, + @{PROC}/version r, # Instance specific paths {{ .logPath }}/** rwk,
_______________________________________________ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel