Peng Tao
338c282950
dep: update nix dependency
...
To fix CVE-2021-45707 that affects nix < 0.20.2.
Fixes : #4929
Signed-off-by: Peng Tao <bergwolf@hyper.sh >
2022-08-17 16:06:26 +08:00
Bin Liu
8cd1e50eb6
Merge pull request #4921 from liubin/fix/2920-delete-vergen
...
runtime-rs: delete vergen dependency
2022-08-17 10:09:12 +08:00
Bin Liu
eab7c8f28f
runtime-rs: delete vergen dependency
...
vergen is a build dependency, but it is not being used.
we are processing ver/commit hash by make command, but not by vergen.
Fixes : #4920
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-08-16 15:31:24 +08:00
Bin Liu
828574d27c
Merge pull request #4893 from openanolis/runtime-rs-main
...
Runtime-rs: support persist file
2022-08-16 14:42:22 +08:00
Bin Liu
830fb266e6
Merge pull request #4854 from openanolis/runtime-rs-delete
...
runtime-rs: delete route model
2022-08-15 20:48:58 +08:00
Zhongtao Hu
4d7f3edbaf
runtime-rs: support the functionality of cleanup
...
Cleanup sandbox resource
Fixes : #4891
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-13 15:56:38 +08:00
Zhongtao Hu
5aa83754e5
runtime-rs: support save to persist file and restore
...
Support the functionality of save and restore for sandbox state
Fixes:#4891
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-13 15:44:13 +08:00
Zhongtao Hu
c280d6965b
runtime-rs: delete route model
...
As route model is used for specific internal scenario, and it's not for
the general requirement.
Fixes:#4838
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-11 15:56:43 +08:00
Bin Liu
ca9d16e5ea
runtime-rs: update Cargo.lock
...
Update Cargo.lock
Fixes : #4875
Signed-off-by: Bin Liu <bin@hyper.sh >
2022-08-11 10:34:36 +08:00
Zhongtao Hu
8bbffc42cf
runtime-rs:update rtnetlink version
...
update rtnetlink version for runtime-rs
Fixes:#4824
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-05 11:18:09 +08:00
Zhongtao Hu
389ae97020
runtime-rs:skip the test when the arch is s390x
...
github.com/kata-containers/tests#4986.To avoid returning an error when
running the ci, we just skip the test if the arch is s390x
Fixes : #4816
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-04 21:13:50 +08:00
Zhongtao Hu
945e02227c
runtime-rs:skip the build process when the arch is s390x
...
github.com/kata-containers/tests#4986.To avoid returning an error when running the ci, we just skip the build
process if the arch is s390x
Fixes : #4816
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-04 21:13:40 +08:00
Zhongtao Hu
7247575fa2
runtime-rs:fix cargo clippy
...
fix cargo clippy
Fixes : #4791
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-08-02 13:17:37 +08:00
Peng Tao
5457deb034
Merge pull request #4741 from openanolis/fix-stop-failed-in-azure
...
runtime-rs: fix stop failed in azure
2022-07-29 11:41:16 +08:00
Quanwei Zhou
fa0b11fc52
runtime-rs: fix stdin hang in azure
...
Fix stdin hang in azure.
Fixes : #4740
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-28 16:16:37 +08:00
Bin Liu
50b0b7cc15
Merge pull request #4681 from Tim-0731-Hzt/runtime-rs-sharepid
...
runtime-rs: fix set share sandbox pid namespace
2022-07-27 21:43:58 +08:00
Peng Tao
129335714b
Merge pull request #4727 from openanolis/anolis-fix-network
...
fix network failed for kata ci
2022-07-26 15:10:55 +08:00
Zhongtao Hu
b3147411e3
runtime-rs:add unit test for set share pid ns
...
Fixes:#4680
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-26 14:42:00 +08:00
Zhongtao Hu
1ef3f8eac6
runtime-rs: set share sandbox pid namespace
...
Set the share sandbox pid namepsace from spec
Fixes:#4680
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-26 14:41:59 +08:00
Quanwei Zhou
57c556a801
runtime-rs: fix stop failed in azure
...
Fix the stop failed in azure.
Fixes : #4740
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-26 12:16:32 +08:00
Peng Tao
3f4dd92c2d
Merge pull request #4702 from openanolis/runtime-rs-endpoint-dev
...
runtime-rs: add functionalities support for macvlan and vlan endpoints
2022-07-25 17:04:45 +08:00
Quanwei Zhou
c825065b27
runtime-rs: fix tc filter setup failed
...
Fix bug using tc filter and protocol needs to use network byte order.
Fixes : #4726
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-25 11:16:33 +08:00
Quanwei Zhou
e0194dcb5e
runtime-rs: update route destination with prefix
...
Update route destination with prefix.
Fixes : #4726
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-25 11:16:22 +08:00
Ji-Xinyou
896478c92b
runtime-rs: add functionalities support for macvlan and vlan endpoints
...
Add macvlan and vlan support to runtime-rs code and corresponding unit
tests.
Fixes : #4701
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-07-22 10:09:11 +08:00
Quanwei Zhou
54f53d57ef
runtime-rs: support disable_guest_seccomp
...
support disable_guest_seccomp
Fixes : #4691
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-21 07:46:28 +08:00
Bin Liu
540303880e
Merge pull request #4688 from quanweiZhou/fix_sandbox_cgroup_false
...
runtime-rs: fix sandbox_cgroup_only=false panic
2022-07-19 20:38:57 +08:00
Peng Tao
7c146a5d95
Merge pull request #4684 from quanweiZhou/fix-ctr-exit-error
...
runtime-rs: fix ctr exit failed
2022-07-19 16:02:20 +08:00
Peng Tao
4c3bd6b1d1
Merge pull request #4656 from openanolis/runtime-rs-ipvlan
...
runtime-rs: support functionalities of ipvlan endpoint
2022-07-19 11:15:31 +08:00
Bin Liu
960f2a7f70
Merge pull request #4678 from Tim-0731-Hzt/runtime-rs-makefile-2
...
runtime-rs: remove the value of hypervisor path in DB config
2022-07-19 09:34:45 +08:00
Quanwei Zhou
e9988f0c68
runtime-rs: fix sandbox_cgroup_only=false panic
...
When run with configuration `sandbox_cgroup_only=false`, we will call
`gen_overhead_path()` as the overhead path. The `cgroup-rs` will push
the path with the subsystem prefix by `PathBuf::push()`. When the path
has prefix “/” it will act as root path, such as
```
let mut path = PathBuf::from("/tmp");
path.push("/etc");
assert_eq!(path, PathBuf::from("/etc"));
```
So we shoud not set overhead path with prefix "/".
Fixes : #4687
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-19 08:30:34 +08:00
Quanwei Zhou
cebbebbe8a
runtime-rs: fix ctr exit failed
...
During use, there will be cases where the container is in the stop state
and get another stop. In this case, the second stop needs to be ignored.
Fixes : #4683
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-19 07:43:22 +08:00
Bin Liu
758cc47b32
Merge pull request #4671 from liubin/4670-upgrade-nix
...
kata-sys-util: upgrade nix version
2022-07-18 23:31:07 +08:00
Ji-Xinyou
62182db645
runtime-rs: add unit test for ipvlan endpoint
...
Add unit test to check the integrity of IPVlanEndpoint::new(...)
Fixes : #4655
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-07-18 15:56:06 +08:00
xuejun-xj
99654ce694
runtime-rs: update dbs-xxx dependencies
...
Update dbs-xxx commit ID for aarch64 in runtime-rs/Cargo.toml file to add
dependencies for aarch64.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:46 +08:00
xuejun-xj
f4c3adf596
runtime-rs: Add compile option file
...
Add file aarch64-options.mk for compiling on aarch64 architectures.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:46 +08:00
xuejun-xj
545ae3f0ee
runtime-rs: fix warning
...
Module anyhow::anyhow is only used on x86_64 architecture in
crates/hypervisor/src/device/vfio.rs file.
Fixes : #4676
Signed-off-by: xuejun-xj <jiyunxue@alibaba.linux.com >
2022-07-18 13:46:39 +08:00
Zhongtao Hu
19eca71cd9
runtime-rs: remove the value of hypervisor path in DB config
...
As a built in VMM, Path, jailer path, ctlpath are not needed for
Dragonball. So we don't generate those value in Makefile.
Fixes : #4677
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-18 13:37:51 +08:00
Ji-Xinyou
d8920b00cd
runtime-rs: support functionalities of ipvlan endpoint
...
Add support for ipvlan endpoint
Fixes : #4655
Signed-off-by: Ji-Xinyou <jerryji0414@outlook.com >
2022-07-18 11:34:03 +08:00
liubin
996a6b80bc
kata-sys-util: upgrade nix version
...
New nix is supporting UMOUNT_NOFOLLOW, upgrade nix
version to use this flag instead of the self-defined flag.
Fixes : #4670
Signed-off-by: liubin <liubin0329@gmail.com >
2022-07-15 17:38:15 +08:00
Quanwei Zhou
3c989521b1
dragonball: update for review
...
update for review
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
2022-07-14 10:43:59 +08:00
Chao Wu
1befbe6738
runtime-rs: Cargo lock for fix version problem
...
Cargo lock for fix version problem
Signed-off-by: Chao Wu <chaowu@linux.alibaba.com >
2022-07-14 08:49:39 +08:00
Quanwei Zhou
3d6156f6ec
runtime-rs: support dragonball and runtime-binary
...
Fixes : #3785
Signed-off-by: Quanwei Zhou <quanweiZhou@linux.alibaba.com >
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-07-14 08:49:30 +08:00
James O. D. Hunt
59cab9e835
Merge pull request #4380 from Tim-0731-Hzt/rund/makefile
...
runtime-rs: makefile for dragonball
2022-07-01 09:12:38 +01:00
Zhongtao Hu
07231b2f3f
runtime-rs:refactor network model with netlink
...
add unit test for tcfilter
Fixes : #4289
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:38:23 +08:00
Zhongtao Hu
c8a9052063
build: format files
...
add Enter at the end of the file
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:10 +08:00
Zhongtao Hu
242992e3de
build: put install methods in utils.mk
...
put install methods in utils.mk to avoid duplication
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:10 +08:00
Zhongtao Hu
8a697268d0
build: makefile for dragonball config
...
use makefile to generate dragonball config file
Fixes : #4379
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:19:07 +08:00
Zhongtao Hu
9c526292e7
runtime-rs:refactor network model with netlink
...
refactor tcfilter with netlink
Fixes : #4289
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com >
2022-06-29 11:03:29 +08:00
Fupan Li
9cb15ab4c5
agent: add the FSGroup support
...
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2022-06-11 11:30:51 +08:00
Fupan Li
ff7874bc23
protobuf: upgrade the protobuf version to 2.27.0
...
Signed-off-by: Fupan Li <fupan.lfp@antgroup.com >
2022-06-11 10:05:52 +08:00