Explorar o código

Merge pull request #37847 from thaJeztah/more_permissive_daeon_conf_dir

Loosen permissions on /etc/docker directory
Vincent Demeester %!s(int64=6) %!d(string=hai) anos
pai
achega
8efb908581
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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
 // TODO: this should use more of libtrust.LoadOrCreateTrustKey which may need
 // a refactor or this function to be moved into libtrust
 // a refactor or this function to be moved into libtrust
 func loadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) {
 func loadOrCreateTrustKey(trustKeyPath string) (libtrust.PrivateKey, error) {
-	err := system.MkdirAll(filepath.Dir(trustKeyPath), 0700, "")
+	err := system.MkdirAll(filepath.Dir(trustKeyPath), 0755, "")
 	if err != nil {
 	if err != nil {
 		return nil, err
 		return nil, err
 	}
 	}