Skip to content

Commit

Permalink
Reduce file permissions
Browse files Browse the repository at this point in the history
Signed-off-by: fengwei0328 <feng.wei8@zte.com.cn>
  • Loading branch information
fengwei0328 committed Feb 7, 2025
1 parent 21590cd commit 941b8dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pkg/dnsutil/hostsstore/hostsstore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/mountutil/volumestore/volumestore.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 941b8dc

Please sign in to comment.