Commit ddd6abb
fix(3207, 3209) Difference between the exec command in runc and youki (#3210)
* chore(deps): bump the patch group with 4 updates
Bumps the patch group with 4 updates: [libc](https://github.com/rust-lang/libc), [clap](https://github.com/clap-rs/clap), [serde_json](https://github.com/serde-rs/json) and [clap_complete](https://github.com/clap-rs/clap).
Updates `libc` from 0.2.174 to 0.2.175
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Changelog](https://github.com/rust-lang/libc/blob/0.2.175/CHANGELOG.md)
- [Commits](rust-lang/libc@0.2.174...0.2.175)
Updates `clap` from 4.5.4 to 4.5.13
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.5.4...clap_complete-v4.5.13)
Updates `serde_json` from 1.0.141 to 1.0.142
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.141...v1.0.142)
Updates `clap_complete` from 4.5.1 to 4.5.13
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](clap-rs/clap@clap_complete-v4.5.1...clap_complete-v4.5.13)
---
updated-dependencies:
- dependency-name: libc
dependency-version: 0.2.175
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: clap
dependency-version: 4.5.13
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: serde_json
dependency-version: 1.0.142
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: clap_complete
dependency-version: 4.5.13
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore(deps): bump the patch group with 3 updates
Bumps the patch group with 3 updates: [oci-spec](https://github.com/youki-dev/oci-spec-rs), [thiserror](https://github.com/dtolnay/thiserror) and [anyhow](https://github.com/dtolnay/anyhow).
Updates `oci-spec` from 0.8.1 to 0.8.2
- [Changelog](https://github.com/youki-dev/oci-spec-rs/blob/main/release.md)
- [Commits](youki-dev/oci-spec-rs@v0.8.1...v0.8.2)
Updates `thiserror` from 2.0.12 to 2.0.14
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@2.0.12...2.0.14)
Updates `anyhow` from 1.0.98 to 1.0.99
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](dtolnay/anyhow@1.0.98...1.0.99)
---
updated-dependencies:
- dependency-name: oci-spec
dependency-version: 0.8.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: thiserror
dependency-version: 2.0.14
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: anyhow
dependency-version: 1.0.99
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* add exec command with_capabilities
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add exec command with_ignore_paused
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix issue 3209 and change exec arg cgroup from Option of string into Option of vector of string
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add exec command with_cgroup
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add exec command with_process_label, but youki does not support selinux yet
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add exec command with_preserve_fds
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add exec command with_apparmor
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix build error
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix build error
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add preserve-fds test
Signed-off-by: tommady <tommady@users.noreply.github.com>
* chore(deps): bump thiserror from 2.0.14 to 2.0.15 in the patch group
Bumps the patch group with 1 update: [thiserror](https://github.com/dtolnay/thiserror).
Updates `thiserror` from 2.0.14 to 2.0.15
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@2.0.14...2.0.15)
---
updated-dependencies:
- dependency-name: thiserror
dependency-version: 2.0.15
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore(deps): bump serde_json from 1.0.142 to 1.0.143 in the patch group
Bumps the patch group with 1 update: [serde_json](https://github.com/serde-rs/json).
Updates `serde_json` from 1.0.142 to 1.0.143
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.142...v1.0.143)
---
updated-dependencies:
- dependency-name: serde_json
dependency-version: 1.0.143
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix preserve_fds_test flank failure
Signed-off-by: tommady <tommady@users.noreply.github.com>
* chore(deps): bump thiserror from 2.0.15 to 2.0.16 in the patch group
Bumps the patch group with 1 update: [thiserror](https://github.com/dtolnay/thiserror).
Updates `thiserror` from 2.0.15 to 2.0.16
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](dtolnay/thiserror@2.0.15...2.0.16)
---
updated-dependencies:
- dependency-name: thiserror
dependency-version: 2.0.16
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* add --ignore-paused e2e test
Signed-off-by: tommady <tommady@users.noreply.github.com>
* chore(deps): bump regex from 1.11.1 to 1.11.2 in the patch group
Bumps the patch group with 1 update: [regex](https://github.com/rust-lang/regex).
Updates `regex` from 1.11.1 to 1.11.2
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](rust-lang/regex@1.11.1...1.11.2)
---
updated-dependencies:
- dependency-name: regex
dependency-version: 1.11.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore(deps): bump tracing-subscriber in the patch group
Bumps the patch group with 1 update: [tracing-subscriber](https://github.com/tokio-rs/tracing).
Updates `tracing-subscriber` from 0.3.19 to 0.3.20
- [Release notes](https://github.com/tokio-rs/tracing/releases)
- [Commits](tokio-rs/tracing@tracing-subscriber-0.3.19...tracing-subscriber-0.3.20)
---
updated-dependencies:
- dependency-name: tracing-subscriber
dependency-version: 0.3.20
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore(deps): bump chrono from 0.4.41 to 0.4.42 in the patch group
Bumps the patch group with 1 update: [chrono](https://github.com/chronotope/chrono).
Updates `chrono` from 0.4.41 to 0.4.42
- [Release notes](https://github.com/chronotope/chrono/releases)
- [Changelog](https://github.com/chronotope/chrono/blob/main/CHANGELOG.md)
- [Commits](chronotope/chrono@v0.4.41...v0.4.42)
---
updated-dependencies:
- dependency-name: chrono
dependency-version: 0.4.42
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore(deps): bump errno from 0.3.13 to 0.3.14 in the patch group
Bumps the patch group with 1 update: [errno](https://github.com/lambda-fairy/rust-errno).
Updates `errno` from 0.3.13 to 0.3.14
- [Release notes](https://github.com/lambda-fairy/rust-errno/releases)
- [Changelog](https://github.com/lambda-fairy/rust-errno/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lambda-fairy/rust-errno/commits)
---
updated-dependencies:
- dependency-name: errno
dependency-version: 0.3.14
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* add cgroup tests
Signed-off-by: tommady <tommady@users.noreply.github.com>
* chore(deps): bump the patch group with 2 updates
Bumps the patch group with 2 updates: [serde](https://github.com/serde-rs/serde) and [serde_json](https://github.com/serde-rs/json).
Updates `serde` from 1.0.219 to 1.0.223
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](serde-rs/serde@v1.0.219...v1.0.223)
Updates `serde_json` from 1.0.143 to 1.0.145
- [Release notes](https://github.com/serde-rs/json/releases)
- [Commits](serde-rs/json@v1.0.143...v1.0.145)
---
updated-dependencies:
- dependency-name: serde
dependency-version: 1.0.223
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
- dependency-name: serde_json
dependency-version: 1.0.145
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore(deps): bump serde from 1.0.223 to 1.0.225 in the patch group
Bumps the patch group with 1 update: [serde](https://github.com/serde-rs/serde).
Updates `serde` from 1.0.223 to 1.0.225
- [Release notes](https://github.com/serde-rs/serde/releases)
- [Commits](serde-rs/serde@v1.0.223...v1.0.225)
---
updated-dependencies:
- dependency-name: serde
dependency-version: 1.0.225
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: patch
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix linter
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix validate tests on runc
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add no capability test
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add new_privileges test
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add ignoring for typo of checking the CapInh
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add some_capabilities test
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add capabilities_by_flag test
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comment change to use utils normalize
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comment add comment for cap test to more detail description
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add more part of the cgroup tests request from saku3
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix linter
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add TODO comment for exec/cgroup_test.rs tests
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix linter
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comments
Signed-off-by: tommady <tommady@users.noreply.github.com>
* enhance ignore_paused_test.rs to ensure exec init then resume after
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add -skip TestImagePullSchema1 since it is officially deprecated
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix potential race condition in init process channel
Signed-off-by: tommady <tommady@users.noreply.github.com>
* undo e2e workflow format
Signed-off-by: tommady <tommady@users.noreply.github.com>
* undo e2e workflow format
Signed-off-by: tommady <tommady@users.noreply.github.com>
* undo e2e workflow format
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comment
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comment fix up e2e.yaml format
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comment fix up e2e.yaml format
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comment fix up e2e.yaml format
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix failures of merge main
Signed-off-by: tommady <tommady@users.noreply.github.com>
* fix test-contest exec after merge main
Signed-off-by: tommady <tommady@users.noreply.github.com>
* try to fix x86_64 musl failure
Signed-off-by: tommady <tommady@users.noreply.github.com>
* add code comment for preserve_fds_test.rs
Signed-off-by: tommady <tommady@users.noreply.github.com>
* address comment: fix logic bug in container state validation
Signed-off-by: tommady <tommady@users.noreply.github.com>
---------
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: tommady <tommady@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>1 parent a68a38c commit ddd6abb
File tree
12 files changed
+789
-21
lines changed- crates
- libcontainer/src/container
- liboci-cli/src
- youki/src/commands
- tests/contest/contest/src
- tests/exec
- utils
12 files changed
+789
-21
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
16 | 20 | | |
17 | 21 | | |
18 | 22 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | 23 | | |
| |||
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
62 | 69 | | |
63 | 70 | | |
64 | 71 | | |
| |||
85 | 92 | | |
86 | 93 | | |
87 | 94 | | |
88 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
89 | 113 | | |
90 | | - | |
| 114 | + | |
91 | 115 | | |
92 | 116 | | |
93 | 117 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
51 | 56 | | |
52 | 57 | | |
53 | 58 | | |
| |||
143 | 148 | | |
144 | 149 | | |
145 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
146 | 155 | | |
147 | 156 | | |
148 | 157 | | |
| |||
206 | 215 | | |
207 | 216 | | |
208 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
209 | 238 | | |
210 | 239 | | |
211 | 240 | | |
| |||
252 | 281 | | |
253 | 282 | | |
254 | 283 | | |
| 284 | + | |
| 285 | + | |
255 | 286 | | |
256 | 287 | | |
257 | 288 | | |
| |||
419 | 450 | | |
420 | 451 | | |
421 | 452 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | 453 | | |
427 | | - | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
428 | 462 | | |
429 | 463 | | |
430 | 464 | | |
| |||
454 | 488 | | |
455 | 489 | | |
456 | 490 | | |
457 | | - | |
| 491 | + | |
458 | 492 | | |
459 | 493 | | |
460 | 494 | | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
461 | 499 | | |
462 | 500 | | |
463 | 501 | | |
| |||
564 | 602 | | |
565 | 603 | | |
566 | 604 | | |
567 | | - | |
| 605 | + | |
568 | 606 | | |
| 607 | + | |
| 608 | + | |
569 | 609 | | |
570 | 610 | | |
571 | 611 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | 59 | | |
61 | 60 | | |
62 | | - | |
63 | 61 | | |
64 | 62 | | |
65 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
13 | | - | |
14 | 12 | | |
15 | 13 | | |
16 | 14 | | |
| |||
19 | 17 | | |
20 | 18 | | |
21 | 19 | | |
| 20 | + | |
22 | 21 | | |
23 | 22 | | |
24 | 23 | | |
| |||
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
33 | 36 | | |
34 | 37 | | |
35 | 38 | | |
| |||
0 commit comments