Links v2: Mutable network files

This exploits the new MS_SLAVE support in libcontainer to make `/etc/resolv.conf` and `/etc/hosts` mutable.

This also fixes the /etc/hosts test and adds a few of its own.

Caveat: restarting a container (currently) does not keep /etc/hosts intact. I'm still torn on whether this is a feature or not.
UGGGGH

ok

On Sep 13, 2014, at 11:16 AM, Alexandr Morozov <notifications@github.com> wrote:

> In daemon/volumes.go:
> 
> >  	}
> >  
> >  	if container.HostsPath != "" {
> > -		mounts = append(mounts, execdriver.Mount{container.HostsPath, "/etc/hosts", true, true})
> > +		mounts = append(mounts, execdriver.Mount{container.HostsPath, "/etc/hosts", true, false, true})
> Hell, now this is unreadable at all :) Could you pls change to named fields?
> 
> —
> Reply to this email directly or view it on GitHub.
>