Commit 9bf0ae5d authored by Quentin Machu's avatar Quentin Machu

rkt: Fix /etc/hosts /etc/resolv.conf permissions

This enables any users on the container to resolve DNS, instead of only root.
parent b35d33c7
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment