mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-31 15:25:57 +00:00
rkt: Fix /etc/hosts /etc/resolv.conf permissions
This enables any users on the container to resolve DNS, instead of only root.
This commit is contained in:
parent
b35d33c789
commit
9bf0ae5d78
@ -659,7 +659,7 @@ func copyfile(src, dst string) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return ioutil.WriteFile(dst, data, 0640)
|
||||
return ioutil.WriteFile(dst, data, 0644)
|
||||
}
|
||||
|
||||
// TODO(yifan): Can make rkt handle this when '--net=host'. See https://github.com/coreos/rkt/issues/2430.
|
||||
|
Loading…
Reference in New Issue
Block a user