1
0
mirror of https://github.com/containers/youki synced 2024-11-29 21:11:29 +01:00
Commit Graph

62 Commits

Author SHA1 Message Date
Hiroyuki Moriya
6dd0d7f031
Init a selinux project (#2800)
* selinux_init

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* use_unimplemented

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* add_explanation

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* update

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* use_path_instead_of_str

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* use_thiserror

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

* use_struct

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>

---------

Signed-off-by: Hiroyuki Moriya <41197469+Gekko0114@users.noreply.github.com>
2024-06-21 20:22:38 +09:00
Toru Komatsu
13d791b8e1
Init a seccomp project (#2729)
* Init a seccomp project

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Make gen_validation a static method

Signed-off-by: utam0k <k0ma@utam0k.jp>

---------

Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-04-04 21:32:39 +09:00
Toru Komatsu
464344923f
Name the test tools contest (#2486)
* Name the test tools `contest`

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Address the feedbacks

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Fix a build error

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Fix a workflow

Signed-off-by: utam0k <k0ma@utam0k.jp>

* Address the feedbacks

Signed-off-by: utam0k <k0ma@utam0k.jp>

---------

Signed-off-by: utam0k <k0ma@utam0k.jp>
2024-01-12 14:28:47 +05:30
Yashodhan
80f1f36ae9
Refactor test dir structure (#2421)
* Move individual rust-oci-tests components in the tests dir

We can use several things from test_framework and even integration_test
for additional tests such as podman rootless and wasm tests

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

* fix scripts and docs for the new dir structure

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2023-10-10 21:00:02 +09:00
Eric Fang
f4e7e300e6
Fix the feature test and turn on in CI (#2060)
* reworked the justfile to be explicit with path

Signed-off-by: yihuaf <yihuaf@unkies.org>

* fix the feature tests

Signed-off-by: yihuaf <yihuaf@unkies.org>

* add the musl test

Signed-off-by: yihuaf <yihuaf@unkies.org>

* moving all stub into a single dir

Signed-off-by: yihuaf <yihuaf@unkies.org>

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-06-19 21:21:18 +09:00
Thomas Schubart
16f51cf161 Add wasm sample program
Signed-off-by: Thomas Schubart <24721048+Furisto@users.noreply.github.com>
2022-12-25 20:48:27 +01:00
utam0k
6a98b59026 Convenient use of rust-analyzer and other tools by placing Cargo.toml in the root.
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-04-26 12:03:09 +00:00
Yashodhan Joshi
73daf98638 separate integration test crates from core youki crates 2022-01-31 11:45:48 +05:30
Yashodhan Joshi
a8408661e8 Add minimum rust version requirement to libcgroups and libcontainers due to CVE-2022-21658 2022-01-21 20:19:50 +05:30
Furisto
0dbae24651
Move and split youki into container crate and cli 2021-10-22 21:55:17 +02:00
Furisto
c77a71afd4
Move test framework and integration tests 2021-10-22 21:55:16 +02:00
Furisto
62f4dc5029
Move seccomp crate to crates 2021-10-22 21:55:15 +02:00
Furisto
610c95c176
Move cgroups crate to crate directory 2021-10-22 21:55:11 +02:00
yihuaf
3bd7c83f03 update oci-spec-rs version 2021-10-17 01:53:16 +02:00
yihuaf
bf2b9654d1 remove ipc-channel dependency 2021-10-15 05:45:04 +02:00
Thomas Schubart
d28110f641
Update procfs (#387) 2021-10-14 15:24:59 -07:00
yihuaf
bd21ba9001 change duration back to u64 2021-10-06 18:42:12 +02:00
yihuaf
b70929cb8c update oci-spec-rs to latest.
remove TODO because it is already tracked by issue
2021-10-06 18:42:12 +02:00
Yashodhan Joshi
ea1b1f41ad Move test_framework inside youki_integration_test, making it a member of its workspace 2021-10-04 18:11:41 +05:30
yukang
c4a61d72c6 use existing create_temp_dir 2021-10-02 19:54:44 +08:00
yukang
26e345d190 use tempfile for testcase 2021-10-02 12:32:50 +08:00
yukang
5714615b80 add rootless option for spec 2021-10-01 20:44:10 +08:00
oblique
6cb89fcdfa
Seal /proc/self/exe to protect against CVE-2019-5736 (#343) 2021-09-30 16:47:08 -07:00
yihuaf
6d4bda689d move ipc-channel to dev dependencies 2021-09-30 01:06:11 +02:00
yihuaf
ec63a5c979 Implemented a helper function to run tests in child process 2021-09-29 07:58:00 +02:00
Takashi IIGUNI
97848f1ce6
Updated cgroups oci-spec-rs to 0.5.1 or later (#303)
* Updated cgroup oci-spec-rs to 0.5.1

Signed-off-by: Takashi IIGUNI <iiguni.tks@gmail.com>
2021-09-26 18:08:56 -07:00
utam0k
7b20c46efd handle name as a str instead of a String in youki_integration_test. 2021-09-19 22:11:42 +09:00
utam0k
aaebeaf614 add test_framework to workspace exclude. 2021-09-19 17:10:14 +09:00
yihuaf
57d436290e Adds a seccomp binding 2021-09-16 07:39:04 +02:00
yihuaf
052ba25769 Implement the seccomp profile 2021-09-15 20:05:46 +02:00
utam0k
f754053e58 fix conflicts. 2021-09-12 17:37:14 +09:00
Takashi IIGUNI
472d6463ff Delete useless comment lines
Signed-off-by: Takashi IIGUNI <iiguni.tks@gmail.com>
2021-09-12 08:00:27 +00:00
Takashi IIGUNI
ecf3370ba0 Upgrade oci-spec-rs to 0.4.0-with-bugfix version
Signed-off-by: Takashi IIGUNI <iiguni.tks@gmail.com>
2021-09-12 07:27:28 +00:00
utam0k
b7bccd5af7 introduce workspace. 2021-09-09 23:07:06 +09:00
Takashi IIGUNI
c83ac6a22b Merge remote-tracking branch 'upstream/main' into upgrade-oci-spec-rs
Signed-off-by: Takashi IIGUNI <iiguni.tks@gmail.com>
2021-09-07 02:32:41 +00:00
utam0k
3cffe18944
Merge pull request #274 from Furisto/update-procfs
Bump procfs
2021-09-06 21:41:38 +09:00
Furisto
e9d47f0725 Bump procfs 2021-09-06 11:25:17 +02:00
Takashi IIGUNI
8d3ff9b5f2 Upgrade oci-spec-rs to 0.4.0 for youki
1. Fix capability type (Capability type change: Vec -> HashSet)
2. Implement functions equivalent to LinuxDeviceType::to_sflag in youki.
3. Fix crate path: use oci_spec::XXX -> use oci_spec::runtime::XXX

Signed-off-by: Takashi IIGUNI <iiguni.tks@gmail.com>
2021-09-06 09:08:17 +00:00
Akshat Agarwal
c230fb6848 bump clap and use crate_version macro
Signed-off-by: Akshat Agarwal <humancalico@disroot.org>
2021-09-06 00:41:28 +05:30
utam0k
befc5c0ded
Merge pull request #202 from utam0k/improvement/change-to-use-oci-spec-rs
Reflected that oci_spec has been moved to a separate repository
2021-08-17 21:53:14 +09:00
utam0k
f96a4fa440 Reflected that oci_spec has been moved to a separate repository
ref https://github.com/containers/youki/issues/179
2021-08-15 17:41:51 +09:00
yihuaf
7221e85d24 add crossbeam_channel 2021-08-14 06:53:31 +02:00
Furisto
1231479b0e Move cgroup code to own crate 2021-08-12 11:31:26 +02:00
utam0k
622fc1e5d1 bump up to nix-0.22.0 2021-07-27 17:59:38 +09:00
utam0k
72bd795f2d
Merge pull request #151 from ferrell-code/caps-serde
add serde_support to caps
2021-07-22 11:34:33 +09:00
ferrell-code
5cbbba0621 add serde_support to caps
format

cargo

comments

comment

cargo files
2021-07-21 18:25:11 -04:00
Furisto
ffe281981e
Merge pull request #141 from tsturzl/ts-memory-v2-clean
memory cgv2 subsystem implemented
2021-07-21 10:36:53 +02:00
Travis Sturzl
799b93bce8 memory cgv2 subsystem added and working 2021-07-16 10:25:36 -06:00
Furisto
5d63f31d0e Support calling exec multiple times 2021-07-15 22:44:34 +02:00
Furisto
3dd98c5a98 Reduce binary size 2021-07-07 12:03:48 +02:00