[lxc-devel] [lxc-ci/master] images/ubuntu: Fix file mode on sudoers file
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Mon May 11 10:54:40 UTC 2020
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 303 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200511/8ef8e139/attachment.bin>
-------------- next part --------------
From faeaa9418dace6bae1175888b1727010915cf922 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Mon, 11 May 2020 12:53:36 +0200
Subject: [PATCH] images/ubuntu: Fix file mode on sudoers file
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
images/ubuntu.yaml | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/images/ubuntu.yaml b/images/ubuntu.yaml
index 3527e34..b38b389 100644
--- a/images/ubuntu.yaml
+++ b/images/ubuntu.yaml
@@ -590,5 +590,12 @@ actions:
types:
- vm
+- trigger: post-files
+ action: |-
+ #!/bin/sh
+ set -eux
+
+ chmod 0440 /etc/sudoers.d/90-lxd
+
mappings:
architecture_map: debian
More information about the lxc-devel
mailing list