diff --git a/pkg/dnsutil/hostsstore/hostsstore.go b/pkg/dnsutil/hostsstore/hostsstore.go index 1980e4f934b..b3b93b02300 100644 --- a/pkg/dnsutil/hostsstore/hostsstore.go +++ b/pkg/dnsutil/hostsstore/hostsstore.go @@ -66,7 +66,7 @@ func New(dataStore string, namespace string) (retStore Store, err error) { return nil, store.ErrInvalidArgument } - st, err := store.New(filepath.Join(dataStore, hostsDirBasename, namespace), 0, 0o644) + st, err := store.New(filepath.Join(dataStore, hostsDirBasename, namespace), 0, 0o600) if err != nil { return nil, err } diff --git a/pkg/mountutil/volumestore/volumestore.go b/pkg/mountutil/volumestore/volumestore.go index 9dac3df604c..f8033ae1bbd 100644 --- a/pkg/mountutil/volumestore/volumestore.go +++ b/pkg/mountutil/volumestore/volumestore.go @@ -84,7 +84,7 @@ func New(dataStore, namespace string) (volStore VolumeStore, err error) { return nil, store.ErrInvalidArgument } - st, err := store.New(filepath.Join(dataStore, volumeDirBasename, namespace), 0, 0o644) + st, err := store.New(filepath.Join(dataStore, volumeDirBasename, namespace), 0, 0o600) if err != nil { return nil, err }