Skip to content

Commit 73a4b01

Browse files
authored
Merge pull request containerd#3865 from fengwei0328/permission
Reduce file permissions
2 parents 21590cd + cf95ae0 commit 73a4b01

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pkg/dnsutil/hostsstore/hostsstore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ func New(dataStore string, namespace string) (retStore Store, err error) {
6666
return nil, store.ErrInvalidArgument
6767
}
6868

69-
st, err := store.New(filepath.Join(dataStore, hostsDirBasename, namespace), 0, 0o644)
69+
st, err := store.New(filepath.Join(dataStore, hostsDirBasename, namespace), 0, 0o600)
7070
if err != nil {
7171
return nil, err
7272
}

pkg/mountutil/volumestore/volumestore.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ func New(dataStore, namespace string) (volStore VolumeStore, err error) {
8484
return nil, store.ErrInvalidArgument
8585
}
8686

87-
st, err := store.New(filepath.Join(dataStore, volumeDirBasename, namespace), 0, 0o644)
87+
st, err := store.New(filepath.Join(dataStore, volumeDirBasename, namespace), 0, 0o600)
8888
if err != nil {
8989
return nil, err
9090
}

0 commit comments

Comments
 (0)