[lxc-devel] [lxd/master] lxd/apparmor: Add /etc/localtime to the list

stgraber on Github lxc-bot at linuxcontainers.org
Thu Oct 1 19:21:04 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 354 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20201001/36a81986/attachment.bin>
-------------- next part --------------
From e821b245948d6257515a586390de3b1e9c0ec603 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?St=C3=A9phane=20Graber?= <stgraber at ubuntu.com>
Date: Thu, 1 Oct 2020 15:20:40 -0400
Subject: [PATCH] lxd/apparmor: Add /etc/localtime to the list
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

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

diff --git a/lxd/apparmor/network_dnsmasq.go b/lxd/apparmor/network_dnsmasq.go
index e77efd5029..bedf098395 100644
--- a/lxd/apparmor/network_dnsmasq.go
+++ b/lxd/apparmor/network_dnsmasq.go
@@ -37,6 +37,7 @@ profile "{{ .name }}" flags=(attach_disconnected,mediate_deleted) {
   # Additional system files
   @{PROC}/sys/net/ipv6/conf/*/mtu r,
   @{PROC}/@{pid}/fd/ r,
+  {{ .rootPath }}/etc/localtime  r,
   {{ .rootPath }}/usr/share/zoneinfo/**  r,
 
   # System configuration access


More information about the lxc-devel mailing list