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:
Quentin Machu 2016-07-23 13:32:37 +00:00
parent b35d33c789
commit 9bf0ae5d78

View File

@ -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.