[lxc-devel] [distrobuilder/master] shared: Fix gpg directory permissions
monstermunchkin on Github
lxc-bot at linuxcontainers.org
Tue Mar 6 11:16:59 UTC 2018
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 363 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20180306/57c46f84/attachment.bin>
-------------- next part --------------
From 10ff8b0990776de9cc56ae022ba65d0fe36c47c2 Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Tue, 6 Mar 2018 12:15:51 +0100
Subject: [PATCH] shared: Fix gpg directory permissions
Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
shared/util.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/shared/util.go b/shared/util.go
index d0489fe..4d9bd5b 100644
--- a/shared/util.go
+++ b/shared/util.go
@@ -82,7 +82,7 @@ func VerifyFile(signedFile, signatureFile string, keys []string, keyserver strin
func CreateGPGKeyring(keyserver string, keys []string) (string, error) {
gpgDir := filepath.Join(os.TempDir(), "distrobuilder.gpg")
- err := os.MkdirAll(gpgDir, 0700)
+ err := os.MkdirAll(gpgDir, 0600)
if err != nil {
return "", err
}
More information about the lxc-devel
mailing list