Skip to content

Commit e3dcd3c

Browse files
committed
Expect directory permissions to be 0700 or less
Signed-off-by: PingWang <[email protected]> update the permissions to 0660 Signed-off-by: PingWang <[email protected]> revert to 0750 Signed-off-by: PingWang <[email protected]> update 0750 to 0700 Signed-off-by: PingWang <[email protected]>
1 parent e688883 commit e3dcd3c

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)