mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
Expect directory permissions to be 0700 or less
Signed-off-by: PingWang <wang.ping5@zte.com.cn> update the permissions to 0660 Signed-off-by: PingWang <wang.ping5@zte.com.cn> revert to 0750 Signed-off-by: PingWang <wang.ping5@zte.com.cn> update 0750 to 0700 Signed-off-by: PingWang <wang.ping5@zte.com.cn>
This commit is contained in:
parent
e68888384b
commit
e3dcd3c0a9
@ -231,7 +231,7 @@ func GetKubeletDir(dryRun bool) (string, error) {
|
||||
// backupAPIServerCertAndKey backups the old cert and key of kube-apiserver to a specified directory.
|
||||
func backupAPIServerCertAndKey(certAndKeyDir string) error {
|
||||
subDir := filepath.Join(certAndKeyDir, "expired")
|
||||
if err := os.Mkdir(subDir, 0766); err != nil {
|
||||
if err := os.Mkdir(subDir, 0700); err != nil {
|
||||
return errors.Wrapf(err, "failed to created backup directory %s", subDir)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user