Allow IPC namespace to be shared between containers or with the host

Some workloads rely on IPC for communications with other processes.  We
would like to split workloads between two container but still allow them
to communicate though shared IPC.

This patch allows us to mimic the --net code to allow --ipc=host to not split off
the IPC Namespace.  ipc=container:CONTAINERID to share ipc between containers

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Only fetch network stats we use.

The dynamic version using WalkPath() was expensive and we only used some
of the stats anyways.

Signed-off-by: Victor Marmol <vmarmol@google.com>
Merge pull request #244 from vmarmol/net-stats

Only fetch network stats we use.
Merge branch 'unreserve' of https://github.com/rhatdan/libcontainer into rhatdan-unreserve
Add test for IPC host sharing

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Add test for ipc private and shared path

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Merge pull request #245 from crosbymichael/share-ipc

Allow IPC namespace to be shared between containers or with the host
Mount /dev/mqueue by default

Need this for supporting Posix Message Queues

man mq_overview

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Merge pull request #246 from rhatdan/mqueue

Mount /dev/mqueue by default
Add new interfaces for label/selinux

We need the ability when using --ipc container:ID to match the SELinux label of the
container that the new container is sharing a label with.

Also add the ability to get the option to disable SELinux labeling for a container.

Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
Merge pull request #247 from rhatdan/selinux

Add new interfaces for label/selinux
Use RTA_PREFSRC instead of RTA_SRC to make AddRoute() works with a provided source ip address.

Docker-DCO-1.1-Signed-off-by: Albert Zhang <zhgwenming@gmail.com> (github: zhgwenming)
use system.Set{u,g}id to fix Set{u,g}id on Go 1.4

Docker-DCO-1.1-Signed-off-by: Cristian Staretu <cristian.staretu@gmail.com> (github: unclejack)
Merge pull request #251 from unclejack/fix_go1.4_syscalls

use system.Set{u,g}id to fix Set{u,g}id on Go 1.4
enable hairpin mode on virtual interface bridge port

This is to support being able to DNAT/MASQ traffic from a container back into itself (dotcloud/docker#4442)

Docker-DCO-1.1-Signed-off-by: Patrick Hemmer <patrick.hemmer@gmail.com> (github: phemmer)
Sample configuration for ip routing Source Address Selection

Docker-DCO-1.1-Signed-off-by: Albert Zhang <zhgwenming@gmail.com> (github: zhgwenming)
Add drone.yml file

Update Drone commands to match the bits of the Travis config we need

Signed-off-by: Andrew Page <admwiggin@gmail.com>
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Fix GOPATH after Drone mucks with it

Signed-off-by: Andrew Page <admwiggin@gmail.com>
Merge pull request #3 from tianon/drone

Fix GOPATH after Drone mucks with it
Remove travis.yml

Signed-off-by: Michael Crosby <crosbymichael@gmail.com>