Переглянути джерело

Merge pull request #37847 from thaJeztah/more_permissive_daeon_conf_dir

Loosen permissions on /etc/docker directory
Vincent Demeester 6 роки тому
батько
коміт
8efb908581
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      daemon/trustkey.go

+ 1 - 1
daemon/trustkey.go

@@ -17,7 +17,7 @@ import (
 // TODO: this should use more of libtrust.LoadOrCreateTrustKey which may need
 // a refactor or this function to be moved into libtrust
 func loadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) {
-	err := system.MkdirAll(filepath.Dir(trustKeyPath), 0700, "")
+	err := system.MkdirAll(filepath.Dir(trustKeyPath), 0755, "")
 	if err != nil {
 		return nil, err
 	}