Commit Graph

18 Commits

Author SHA1 Message Date
Nick Ethier f345454358 Fix getPidForContainer for later releases of docker 2015-08-11 15:02:56 -06:00
Vish Ishaya 604eaf189e Merge pull request #9 from brahmaroutu/support_ibm_z
add support from IBM Z architecture
2015-07-10 15:24:25 -07:00
root 5d4cf093aa add support from IBM Z architecture
Signed-off-by: Srini Brahmaroutu <srbrahma@us.ibm.com>
2015-07-10 18:57:36 +00:00
Vish Ishaya 493029407e Merge pull request #8 from moul/patch-1
Using proper value for SYS_SETNS
2015-06-30 14:44:43 -07:00
Manfred Touron cbbe6847e6 Using proper value for SYS_SETNS
https://github.com/docker/libcontainer/blob/master/system/setns_linux.go#L17

For information: 374 is `sendmmsg`

Now passing tests on **armv7**

```console
$ uname -a
Linux docker-builder-34 4.0.5-235 #1 SMP Fri Jun 19 08:56:44 UTC 2015 armv7l armv7l armv7l GNU/Linux
$ go test github.com/vishvananda/netns
PASS
ok  	github.com/vishvananda/netns	0.013s
```

Should fix https://github.com/docker/docker/issues/14184
2015-06-30 22:23:27 +02:00
Vish Ishaya b7a04d6db3 Merge pull request #6 from glevand/for-merge-1
Add linux arm64 support
2015-06-24 14:57:55 -07:00
Geoff Levand f0c36f012d Add linux arm64 support
Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-06-17 13:33:40 -07:00
Vish Ishaya ae73e06735 Merge pull request #5 from eyakubovich/get-from-path
Add GetFromPath to construct NsHandle from any path
2015-06-10 22:22:07 -07:00
Eugene Yakubovich be8852baf7 Add GetFromPath to construct NsHandle from any path
Also makes other Get functions utilize GetFromPath
to avoid duplication.
2015-06-07 13:25:43 -07:00
Vish Ishaya 5478c06011 Merge pull request #3 from bpradipt/ppc64le_support
Add syscall id for Powerpc(ppc64) Little Endian(LE) architecture
2015-05-26 10:20:12 -07:00
Pradipta Kr. Banerjee 216051bb77 Add syscall id for Powerpc(ppc64) Little Endian(LE) architecture
Signed-of-by: Pradipta Kr. Banerjee <pradipta.banerjee@gmail.com>
2015-05-25 19:06:15 +00:00
Vish Ishaya 33a96b7b36 Merge pull request #2 from dave-tucker/buildflags
Add Build Flags
2015-05-20 12:13:30 -07:00
Dave Tucker 16c2d46118 Add Build Flags
This commit adds build flags for the various architectures to prevent
failures when cross compiling. It also fixes errors in
netns_unspecified.go by replacing the undefined type Namespace with
NsHandle

Signed-off-by: Dave Tucker <dt@docker.com>
2015-05-20 19:27:24 +01:00
Michael Marineau 008d17ae00 Fix handling of namespaces in multi-threaded processes.
GetFromPid gets the namespace of the main thread, so previously Get
returned the wrong value if run from any other thread. Add a new
GetFromThread which uses the Linux thread id and switch Get to it.
2015-01-26 16:46:24 -08:00
Vishvananda Ishaya e14a2d4e90 support docker 1.2 in GetFromDocker 2014-09-14 23:56:34 -07:00
Vishvananda Ishaya be82404eeb move nshandle into top level gofile 2014-09-13 17:43:21 -07:00
Vishvananda Ishaya 1e4e8a6a14 Add method for empty ns handle 2014-09-13 16:15:18 -07:00
Vishvananda Ishaya b801b0b909 Initial commit of netns package 2014-08-31 14:20:31 -07:00