mirror of
https://github.com/clearlinux/rkt.git
synced 2026-08-28 13:25:39 +00:00
pkg: keystore: default to 0755 for keystore
There is nothing private about our collection of public keys. Make it world-readable by default. This makes it possible to fetch containers as non-root users.
This commit is contained in:
@@ -139,7 +139,7 @@ func storeTrustedKey(dir string, r io.Reader) (string, error) {
|
||||
if err != nil {
|
||||
return "", err
|
||||
}
|
||||
if err := os.MkdirAll(dir, 0700); err != nil {
|
||||
if err := os.MkdirAll(dir, 0755); err != nil {
|
||||
return "", err
|
||||
}
|
||||
entityList, err := openpgp.ReadArmoredKeyRing(bytes.NewReader(pubkeyBytes))
|
||||
|
||||
Reference in New Issue
Block a user