1
0
mirror of https://github.com/rancher/os.git synced 2025-09-02 23:34:57 +00:00

set the permissions for /var/lib/rancher/conf to 0700

Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
This commit is contained in:
Sven Dowideit
2017-03-13 17:17:15 +10:00
parent 63c3d57993
commit 27f11ec6c2
6 changed files with 13 additions and 4 deletions

View File

@@ -220,7 +220,7 @@ func WriteToFile(data interface{}, filename string) error {
return err
}
if err := os.MkdirAll(filepath.Dir(filename), os.ModeDir|0755); err != nil {
if err := os.MkdirAll(filepath.Dir(filename), os.ModeDir|0700); err != nil {
return err
}