Skip to content

Commit cee320a

Browse files
authored
Merge pull request kubernetes#76534 from ping035627/k8s-190413
Expect directory permissions to be 0700
2 parents 1192ca0 + e3dcd3c commit cee320a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kubeadm/app/phases/upgrade/postupgrade.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ func GetKubeletDir(dryRun bool) (string, error) {
231231
// backupAPIServerCertAndKey backups the old cert and key of kube-apiserver to a specified directory.
232232
func backupAPIServerCertAndKey(certAndKeyDir string) error {
233233
subDir := filepath.Join(certAndKeyDir, "expired")
234-
if err := os.Mkdir(subDir, 0766); err != nil {
234+
if err := os.Mkdir(subDir, 0700); err != nil {
235235
return errors.Wrapf(err, "failed to created backup directory %s", subDir)
236236
}
237237

0 commit comments

Comments
 (0)