Set static pods dir to 0750 instead of world readible 0755

This commit is contained in:
Dr. Stefan Schimanski 2015-10-08 00:44:05 +01:00
parent d74950cfb9
commit b629278d7d

View File

@ -220,7 +220,7 @@ func (s *KubeletExecutorServer) Run(hks hyperkube.Interface, _ []string) error {
// create static pods directory
staticPodsConfigPath := filepath.Join(s.RootDirectory, "static-pods")
err := os.Mkdir(staticPodsConfigPath, 0755)
err := os.Mkdir(staticPodsConfigPath, 0750)
if err != nil {
return err
}