mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 07:20:13 +00:00
Set static pods dir to 0750 instead of world readible 0755
This commit is contained in:
parent
d74950cfb9
commit
b629278d7d
@ -220,7 +220,7 @@ func (s *KubeletExecutorServer) Run(hks hyperkube.Interface, _ []string) error {
|
|||||||
|
|
||||||
// create static pods directory
|
// create static pods directory
|
||||||
staticPodsConfigPath := filepath.Join(s.RootDirectory, "static-pods")
|
staticPodsConfigPath := filepath.Join(s.RootDirectory, "static-pods")
|
||||||
err := os.Mkdir(staticPodsConfigPath, 0755)
|
err := os.Mkdir(staticPodsConfigPath, 0750)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user