[lxc-devel] [distrobuilder/master] shared/chroot: Fix /dev/shm file mode

monstermunchkin on Github lxc-bot at linuxcontainers.org
Fri Apr 3 06:25:07 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 364 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200402/d0e3c290/attachment.bin>
-------------- next part --------------
From 1fa79e340bb755e336032250ba430354b80069d2 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Fri, 3 Apr 2020 08:21:28 +0200
Subject: [PATCH] shared/chroot: Fix /dev/shm file mode

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 shared/chroot.go | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/shared/chroot.go b/shared/chroot.go
index 5a375cc..f196d59 100644
--- a/shared/chroot.go
+++ b/shared/chroot.go
@@ -219,7 +219,7 @@ func SetupChroot(rootfs string, envs DefinitionEnv, m []ChrootMount) (func() err
 	}
 
 	// Change permission for /dev/shm
-	err = unix.Chmod("/dev/shm", 1777)
+	err = unix.Chmod("/dev/shm", 01777)
 	if err != nil {
 		return nil, errors.Wrap(err, "Failed to chmod /dev/shm")
 	}


More information about the lxc-devel mailing list