Alexander Morozov
6585cf0147
Use validate-vet script from docker
...
It tests only changed files from commit.
We can't expect vet fixes from all projects from vendor directory.
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-16 09:45:01 -07:00
Michael Crosby
73eab50ed6
Merge pull request #630 from tsuna/master
...
Handle SYS_setns not existing but __NR_setns does.
2015-06-15 10:34:30 -07:00
Daniel, Dao Quang Minh
5dc7ba0f24
Merge pull request #627 from mrunalp/add_groups_check
...
Only try to get AdditionalGroups if they are configured.
2015-06-15 17:03:53 +08:00
Benoit Sigoure
6aeb7e1fa5
Handle SYS_setns not existing but __NR_setns does.
...
On some older Fedora distros SYS_setns was not defined, but
__NR_setns is a usable replacement.
Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
2015-06-14 02:54:44 -07:00
Alexander Morozov
61adc0d9c5
Merge pull request #622 from ktraghavendra/621_container_swappiness
...
Add the memory swappiness tuning support to libcontainer
2015-06-12 13:37:23 -07:00
Mrunal Patel
ab3d3ce15e
Only try to get AdditionalGroups if they are configured.
...
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-06-12 13:20:44 -04:00
Michael Crosby
33b3f3801a
Merge pull request #626 from icecrime/fix_nsinit_config_link
...
Fix nsinit README.md config link
2015-06-11 17:22:54 -07:00
Arnaud Porterie
abeeada1b5
Fix nsinit README.md config link
...
Signed-off-by: Arnaud Porterie <arnaud.porterie@docker.com>
2015-06-11 17:10:25 -07:00
Alexander Morozov
024e2020d5
Merge pull request #625 from mchasal/13856-ppcifrDataByte
...
Additional ppc architectures follow the arm datatype
2015-06-11 16:18:18 -07:00
Mrunal Patel
73f967559b
Merge pull request #624 from LK4D4/improve_cgroupmount
...
Use simpler parsing of /proc/self/mountinfo for FindCgroupMountpoint
2015-06-11 13:47:13 -07:00
Michael Chase-Salerno
251880b22d
Additional ppc architectures follow the arm datatype
...
Signed-off-by: Michael Chase-Salerno <bratac@linux.vnet.ibm.com>
2015-06-11 20:07:33 +00:00
Alexander Morozov
3716bd9db2
Use simpler parsing of /proc/self/mountinfo for FindCgroupMountpoint
...
It sped up this function x10 times(because of not using Ssprintf).
It was one of two major performance drawbacks in docker, because we're parsing
this file pretty often.
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-11 12:56:55 -07:00
Raghavendra K T
ddd92caf18
Add the memory swappiness tuning support to libcontainer
...
Signed-off-by: Raghavendra K T <raghavendra.kt@linux.vnet.ibm.com>
2015-06-11 16:56:03 +05:30
Daniel, Dao Quang Minh
2a3954f053
Merge pull request #620 from hqhq/hq_memswap_change
...
Don't change memswap value in libcontainer
2015-06-11 12:51:32 +08:00
Qiang Huang
f7c16f1d3e
Don't change memswap value in libcontainer
...
As discussed in https://github.com/docker/libcontainer/issues/616 ,
remove this logic in libcontainer.
Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>
2015-06-11 08:54:24 +08:00
Victor Marmol
cb2d973545
Merge pull request #603 from dqminh/mrunalp-add_groups_lookup
...
Rebased: Additional groups lookup
2015-06-10 09:56:56 -04:00
Daniel, Dao Quang Minh
d4ece29c0b
refactor GetAdditionalGroupsPath
...
This parses group file only once to process a list of groups instead of parsing
once for each group. Also added an unit test for GetAdditionalGroupsPath
Signed-off-by: Daniel, Dao Quang Minh <dqminh89@gmail.com>
2015-06-09 23:54:03 -04:00
Mrunal Patel
50603caabe
Adds tests for Additional Groups.
...
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-06-09 23:12:07 -04:00
Mrunal Patel
f28dff5539
Add flags for specifying additional groups.
...
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-06-09 23:12:07 -04:00
Mrunal Patel
429752a69d
Lookup additional groups in the container.
...
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
2015-06-09 23:11:25 -04:00
Alexander Morozov
c963786c6e
Merge pull request #618 from glevand/for-merge-1
...
linux: Convert dup2 calls to dup3
2015-06-09 15:47:34 -07:00
Geoff Levand
29ee54ce2a
nsenter: Convert dup2 calls to dup3
...
For consistency with similar changes required by go lang sources, convert the
C library dup2() calls to dup3().
The go language syscall.Dup2() routine is not available on all CPU
architectures, so yscall.Dup2() calls were converted to syscall.Dup3().
Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-06-09 15:19:47 -07:00
Geoff Levand
0e8afb8f9d
linux: Convert dup2 calls to dup3
...
Convert syscall.Dup2 calls to syscall.Dup3. The dup2 syscall is depreciated
and is not available on some architectures. Fixes build errors like these when
building for arm64:
console_linux.go: undefined: syscall.Dup2
Signed-off-by: Geoff Levand <geoff@infradead.org>
2015-06-09 15:19:47 -07:00
Mrunal Patel
4369703200
Merge pull request #619 from rhatdan/relabel
...
Fix relabel to allow volume mounting of /
2015-06-09 13:46:39 -07:00
Dan Walsh
827ae1f0a2
Fix relabel to allow volume mounting of /
...
Docker-DCO-1.1-Signed-off-by: Dan Walsh <dwalsh@redhat.com> (github: rhatdan)
2015-06-09 16:35:16 -04:00
Mrunal Patel
688ec20a4a
Merge pull request #617 from LK4D4/stop_transient_unit
...
Stop systemd unit on destroy
2015-06-09 10:22:12 -07:00
Mrunal Patel
204502647d
Merge pull request #613 from crosbymichael/seccomp-args
...
Golang seccomp package
2015-06-09 10:13:19 -07:00
Alexander Morozov
f6ad210785
Stop systemd unit on destroy
...
It totally fixes leftover ".scope" fails. Of course it's just
workaround, real issue seems to be in go-systemd library or in systemd
itself.
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-08 15:06:11 -07:00
Michael Crosby
5edcda910e
Improve seccomp API
...
Signed-off-by: Michael Crosby <crosbymichael@gmail.com>
Conflicts:
configs/config.go
container_linux.go
seccomp/seccomp.go
seccomp/seccomp.test
2015-06-05 11:21:40 -07:00
yangshukui
4a99434e8b
add the generated go file
...
Signed-off-by: Yang Shukui <yangshukui@huawei.com>
2015-06-05 11:21:40 -07:00
yangshukui
12a41c825d
seccomp surport filter args
...
1. add args surport for seccomp
2. add CLONE_SECCOMP flag for preventing seccomp feature
Signed-off-by: Yang Shukui <yangshukui@huawei.com>
2015-06-05 11:21:40 -07:00
yangshukui
02e05e0884
Add seccomp feature
...
add seccomp feature which is not use third-party
add multi arch surport
add test case
all code use golang
this pr is relate to #511 because I close it and find it can not be reopen
Signed-off-by: Yang Shukui <yangshukui@huawei.com>
2015-06-05 11:21:40 -07:00
Victor Marmol
ce1f2f1c86
Merge pull request #614 from LK4D4/fix_validate
...
Fix hack/validate.sh
2015-06-05 08:37:51 -07:00
Alexander Morozov
07493c68a8
Merge pull request #615 from kvasdopil/freebsd-compile2
...
make libcontainer compile on freebsd (again)
2015-06-05 07:37:07 -07:00
Alexey Guskov
f66187d234
make libcontainer compile on freebsd (again)
...
Signed-off-by: Alexey Guskov <lexag@mail.ru>
2015-06-05 14:23:32 +03:00
Alexander Morozov
7da5189e67
Fix hack/validate.sh
...
Was broken because of update in docker
Signed-off-by: Alexander Morozov <lk4d4@docker.com>
2015-06-04 14:14:19 -07:00
Mrunal Patel
57a50dd378
Merge pull request #611 from thaJeztah/update-dockerproject-link
...
Update dockerproject.com links
2015-06-03 14:45:38 -07:00
Sebastiaan van Stijn
68556a6d07
Update dockerproject.com links
...
The dockerproject.com domain is moving to dockerproject.org
this changes the buildstatus link to point to the new
domain.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2015-06-03 23:13:22 +02:00
Victor Marmol
be81d577fd
Merge pull request #567 from Mashimiao/support-hugetlb-set-and-getstats
...
hugetlb: Add support of Set and GetStats function
2015-06-02 09:55:28 -07:00
Mrunal Patel
6d58edf698
Merge pull request #608 from davexunit/fix-spec
...
spec: Fix errors in file system mount points table.
2015-05-31 19:06:21 -07:00
David Thompson
7d54664fb8
spec: Fix errors in file system mount points table.
...
"shm" is not a valid file system type, and there must be an "=" between
"gid" and "5" in the devpts options.
Signed-off-by: David Thompson <davet@gnu.org>
2015-05-31 18:17:31 -04:00
Alexander Morozov
3d47519162
Merge pull request #607 from WeiZhang555/bug
...
bug fix: slice bounds out of range
2015-05-30 08:30:58 -07:00
Zhang Wei
9c2893eb28
bug fix: slice bounds out of range
...
If TestGenerateName() accept size parameter larger than 64, it will panic.
This patch fix this potential panic bug.
Signed-off-by: Zhang Wei <zhangwei555@huawei.com>
2015-05-30 11:50:15 +08:00
Michael Crosby
60d043931b
Merge pull request #602 from runcom/fix-race-manager-stats-paths
...
Fix race in stats Manager
2015-05-28 10:23:29 -07:00
Michael Crosby
5f69c650e5
Merge pull request #605 from ZJU-SEL/update_nsinit_readme
...
Update nsinit readme for C/R
2015-05-28 10:22:13 -07:00
Antonio Murdaca
81444369c6
Add mutex in Manager to read from m.Paths
...
Signed-off-by: Antonio Murdaca <me@runcom.ninja>
2015-05-28 12:09:27 +02:00
Daniel, Dao Quang Minh
31496b37b5
Merge pull request #592 from Mashimiao/cgroup-memory-enchancement
...
cgroup memory: Enchance stats support of memory
2015-05-28 13:57:00 +08:00
Ma Shimiao
4002033269
hugetlb: Add support of Set and GetStats function
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2015-05-28 13:09:49 +08:00
Ma Shimiao
11d2aa07a0
cgroup memory: Enchance stats support of memory
...
Signed-off-by: Ma Shimiao <mashimiao.fnst@cn.fujitsu.com>
2015-05-28 09:09:01 +08:00
Mrunal Patel
97f4592aa8
Merge pull request #606 from kvasdopil/freebsd-compile
...
Process.go can compile on FreeBSD
2015-05-27 11:24:21 -07:00