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

956 Commits

Author SHA1 Message Date
dependabot[bot]
22d8fcb668
chore(deps): bump regex from 1.9.6 to 1.10.0
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.6 to 1.10.0.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.6...1.10.0)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-10 00:21:03 +00:00
Yashodhan
b968ac5f96
Merge pull request #2369 from anti-entropy123/main
update nix to 0.27.1 🎉
2023-10-09 20:46:13 +05:30
anti-entropy123
326aea1021 fix lint error
Signed-off-by: anti-entropy123 <1348651580@qq.com>
2023-10-09 10:23:55 +08:00
anti-entropy123
d07a538b44 resolve conflicts
Signed-off-by: anti-entropy123 <1348651580@qq.com>
2023-10-09 10:20:01 +08:00
anti-entropy123
705b17a54b add comments
Signed-off-by: anti-entropy123 <1348651580@qq.com>
2023-10-09 10:17:12 +08:00
dependabot[bot]
20a376faf9
chore(deps): bump errno from 0.3.4 to 0.3.5
Bumps [errno](https://github.com/lambda-fairy/rust-errno) from 0.3.4 to 0.3.5.
- [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-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 02:05:39 +00:00
dependabot[bot]
2a8c0e4fef
chore(deps): bump libc from 0.2.148 to 0.2.149
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.148 to 0.2.149.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.148...0.2.149)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-09 01:20:28 +00:00
anti-entropy123
59937cf490 update nix to 0.27.1
Signed-off-by: anti-entropy123 <1348651580@qq.com>
2023-10-07 11:10:07 +08:00
Yashodhan
cc39179f9f
podman rootless with dbus native (#2370)
* Move dbus_native code to youki, add tests

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

* (incomplete) move individual systemd components to dbus_native

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

* (incomplete) Change tests to use dbus_native, move
systemdClientInterface into dbus_native

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

* (incomplete) Change variant to actual enum, Fix types for systemd

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

* Fix bug in vector ser/de

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

* Fix mut requirements, minor lints etc., add client id in dbus

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

* Add implementation for proxy methods

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

* Split dbus error from SystemdClientError

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

* implement system and session connection creation

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

* Fix typos and failing feature test build

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

* Completely remove dbus dependency and add docs regarding dbus-native

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

* Update migration guide, move documentation od dbus_native to cgroups

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

---------

Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2023-10-05 21:08:06 +09:00
github-actions[bot]
0c588a7a8e
Merge pull request #2401 from containers/dependabot/cargo/errno-0.3.4 2023-10-02 01:43:26 +00:00
dependabot[bot]
8d741e5ba4
chore(deps): bump errno from 0.3.3 to 0.3.4
Bumps [errno](https://github.com/lambda-fairy/rust-errno) from 0.3.3 to 0.3.4.
- [Changelog](https://github.com/lambda-fairy/rust-errno/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lambda-fairy/rust-errno/compare/v0.3.3...v0.3.4)

---
updated-dependencies:
- dependency-name: errno
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 01:33:06 +00:00
dependabot[bot]
0a9bc3916a
chore(deps): bump regex from 1.9.5 to 1.9.6
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.5 to 1.9.6.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.5...1.9.6)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-02 01:04:17 +00:00
dependabot[bot]
493a5653ee
chore(deps): bump thiserror from 1.0.48 to 1.0.49
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.48 to 1.0.49.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.48...1.0.49)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-28 00:21:14 +00:00
dependabot[bot]
7d17b015f6
chore(deps): bump fastrand from 2.0.0 to 2.0.1
Bumps [fastrand](https://github.com/smol-rs/fastrand) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/smol-rs/fastrand/releases)
- [Changelog](https://github.com/smol-rs/fastrand/blob/master/CHANGELOG.md)
- [Commits](https://github.com/smol-rs/fastrand/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: fastrand
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-26 00:18:36 +00:00
dependabot[bot]
1ea8d9ca5d
chore(deps): bump wasmedge-sdk from 0.12.1 to 0.12.2
Bumps [wasmedge-sdk](https://github.com/WasmEdge/wasmedge-rust-sdk) from 0.12.1 to 0.12.2.
- [Release notes](https://github.com/WasmEdge/wasmedge-rust-sdk/releases)
- [Changelog](https://github.com/WasmEdge/wasmedge-rust-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/WasmEdge/wasmedge-rust-sdk/compare/0.12.1...0.12.2)

---
updated-dependencies:
- dependency-name: wasmedge-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-25 01:11:44 +00:00
dependabot[bot]
8b6a7be71e
chore(deps): bump wasmedge-sdk from 0.11.2 to 0.12.1
Bumps [wasmedge-sdk](https://github.com/WasmEdge/wasmedge-rust-sdk) from 0.11.2 to 0.12.1.
- [Release notes](https://github.com/WasmEdge/wasmedge-rust-sdk/releases)
- [Changelog](https://github.com/WasmEdge/wasmedge-rust-sdk/blob/main/CHANGELOG.md)
- [Commits](https://github.com/WasmEdge/wasmedge-rust-sdk/compare/0.11.2...0.12.1)

---
updated-dependencies:
- dependency-name: wasmedge-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 01:11:44 +00:00
dependabot[bot]
fe803060f4
chore(deps): bump wasmtime-wasi from 10.0.1 to 10.0.2
Bumps [wasmtime-wasi](https://github.com/bytecodealliance/wasmtime) from 10.0.1 to 10.0.2.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v10.0.1...v10.0.2)

---
updated-dependencies:
- dependency-name: wasmtime-wasi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-18 00:46:16 +00:00
dependabot[bot]
76e3344f3e
chore(deps): bump wasmtime from 10.0.1 to 10.0.2
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 10.0.1 to 10.0.2.
- [Release notes](https://github.com/bytecodealliance/wasmtime/releases)
- [Changelog](https://github.com/bytecodealliance/wasmtime/blob/main/docs/WASI-some-possible-changes.md)
- [Commits](https://github.com/bytecodealliance/wasmtime/compare/v10.0.1...v10.0.2)

---
updated-dependencies:
- dependency-name: wasmtime
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-15 01:04:25 +00:00
dependabot[bot]
f8d361a799
chore(deps): bump libc from 0.2.147 to 0.2.148
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.147 to 0.2.148.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.147...0.2.148)

---
updated-dependencies:
- dependency-name: libc
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-14 00:33:14 +00:00
dependabot[bot]
a6c0f44209
chore(deps): bump vergen from 8.2.4 to 8.2.5
Bumps [vergen](https://github.com/rustyhorde/vergen) from 8.2.4 to 8.2.5.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/8.2.4...8.2.5)

---
updated-dependencies:
- dependency-name: vergen
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-12 00:44:26 +00:00
Yashodhan
23c1f4f7be
Merge pull request #2279 from YJDoc2/fix/fix-rootless-checks
Change rootless required function and privilege decision
2023-09-05 15:01:52 +05:30
Yashodhan Joshi
4114513c38 Move userns spec validation into utils, add tests for it 2023-09-05 12:11:32 +05:30
dependabot[bot]
f4e909b628
chore(deps): bump thiserror from 1.0.47 to 1.0.48
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.47...1.0.48)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 01:19:47 +00:00
dependabot[bot]
d8da5252eb
chore(deps): bump regex from 1.9.4 to 1.9.5
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.4 to 1.9.5.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.4...1.9.5)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 00:40:07 +00:00
utam0k
c04a9a0577
v0.2.0
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-08-31 11:54:15 +00:00
dependabot[bot]
a1d90a702d
chore(deps): bump errno from 0.3.2 to 0.3.3
Bumps [errno](https://github.com/lambda-fairy/rust-errno) from 0.3.2 to 0.3.3.
- [Changelog](https://github.com/lambda-fairy/rust-errno/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lambda-fairy/rust-errno/compare/v0.3.2...v0.3.3)

---
updated-dependencies:
- dependency-name: errno
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-30 00:53:17 +00:00
Toru Komatsu
09e67372a8
Rust 1.72 (#2323)
* Rust 1.72.0

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

* Fix lint errors from 1.72.0

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

---------

Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-08-29 08:50:15 -07:00
Thomas Schubart
854db28a7c
Merge pull request #2308 from utam0k/idmap-ridmap
Return an error when passing unsupported mount options
2023-08-28 15:17:25 +02:00
utam0k
4871917de1
Address the feedback
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-08-28 13:05:09 +00:00
dependabot[bot]
35e880f8e3
chore(deps): bump regex from 1.9.3 to 1.9.4
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.3 to 1.9.4.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.3...1.9.4)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-28 01:15:12 +00:00
utam0k
1753b5863e
Return an error when passing unsupported mount options
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-08-27 12:07:00 +00:00
Eric Fang
5f3f4ce82f
move the validation logic into executor (#2258)
* move the validation logic into executor

To allow more flexibility for the executor, we move the validate logic into the executor.
The validate runs in the `create` step before workloads are executed.
Instead of implementing the validation in the `exec`, to maintain
backward competiability, we have to introduce an extra step. The exec is
too late to fail if the spec is not validated.

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

* Update the migration guide

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

* Add a comment explaining when the validate step runs.

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

* Implement different error types for validate

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

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-08-22 21:59:15 +09:00
dependabot[bot]
79a410992b
chore(deps): bump anyhow from 1.0.74 to 1.0.75
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.74 to 1.0.75.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.74...1.0.75)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-21 00:55:06 +00:00
Yashodhan Joshi
7078ad6882 Change rootless required function and privilege decision 2023-08-19 19:24:22 +05:30
dependabot[bot]
198652f00b
chore(deps): bump thiserror from 1.0.46 to 1.0.47
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.46 to 1.0.47.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.46...1.0.47)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-18 01:02:24 +00:00
github-actions[bot]
36cffff876
Merge pull request #2270 from containers/dependabot/cargo/anyhow-1.0.74 2023-08-16 00:43:29 +00:00
dependabot[bot]
63be6c75af
chore(deps): bump anyhow from 1.0.72 to 1.0.74
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.72 to 1.0.74.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.72...1.0.74)

---
updated-dependencies:
- dependency-name: anyhow
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 00:31:11 +00:00
dependabot[bot]
a2bb23a624
chore(deps): bump thiserror from 1.0.44 to 1.0.46
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.44 to 1.0.46.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.44...1.0.46)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-16 00:24:05 +00:00
Toru Komatsu
539885f558
Merge pull request #2257 from YJDoc2/rename-rootless-struct
Rename the rootless struct  to UserNamespaceConfig
2023-08-14 21:05:25 +09:00
dependabot[bot]
92a1038080
chore(deps): bump bitflags from 2.3.3 to 2.4.0
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.3.3 to 2.4.0.
- [Release notes](https://github.com/bitflags/bitflags/releases)
- [Changelog](https://github.com/bitflags/bitflags/blob/main/CHANGELOG.md)
- [Commits](https://github.com/bitflags/bitflags/compare/2.3.3...2.4.0)

---
updated-dependencies:
- dependency-name: bitflags
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-14 00:28:54 +00:00
Yashodhan Joshi
4e26799e15 Rename the rootless struct and correspondigs to UserNamespaceConfig and according. 2023-08-12 19:50:25 +05:30
dependabot[bot]
3b46b2d2b9
chore(deps): bump wasmedge-sdk from 0.11.0 to 0.11.2
Bumps [wasmedge-sdk](https://github.com/WasmEdge/WasmEdge) from 0.11.0 to 0.11.2.
- [Release notes](https://github.com/WasmEdge/WasmEdge/releases)
- [Changelog](https://github.com/WasmEdge/WasmEdge/blob/master/Changelog.md)
- [Commits](https://github.com/WasmEdge/WasmEdge/compare/0.11.0...0.11.2)

---
updated-dependencies:
- dependency-name: wasmedge-sdk
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-08 01:07:27 +00:00
dependabot[bot]
daeb8a21e6
chore(deps): bump regex from 1.9.1 to 1.9.3
Bumps [regex](https://github.com/rust-lang/regex) from 1.9.1 to 1.9.3.
- [Release notes](https://github.com/rust-lang/regex/releases)
- [Changelog](https://github.com/rust-lang/regex/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/regex/compare/1.9.1...1.9.3)

---
updated-dependencies:
- dependency-name: regex
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-08-07 01:05:10 +00:00
Eric Fang
bda93700e2
Refactor the Executor interface to allow trait object as executors (#2230)
* Refactored the Executor interface yet again

I apologize having to refactor this interface yet again. Previously, we
introduced the executor to be a function pointer. This works out nicely
because the function pointer in rust can be clone-ed without hassel.
However, I realized that using function pointer is way to restrictive
for our users. The executor may wish to include additional context when
calling the exec function. The function pointer limited the input only
`oci spec`.

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

* fix spell check

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

* Fix doc test

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

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-08-06 13:14:31 +05:30
dependabot[bot]
2d6fd7650b
chore(deps): bump wasmedge-sdk from 0.9.0 to 0.11.0 (#2223)
* chore(deps): bump wasmedge-sdk from 0.9.0 to 0.11.0

Bumps [wasmedge-sdk](https://github.com/WasmEdge/WasmEdge) from 0.9.0 to 0.11.0.
- [Release notes](https://github.com/WasmEdge/WasmEdge/releases)
- [Changelog](https://github.com/WasmEdge/WasmEdge/blob/master/Changelog.md)
- [Commits](https://github.com/WasmEdge/WasmEdge/compare/0.9.0...0.11.0)

---
updated-dependencies:
- dependency-name: wasmedge-sdk
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* Remove VM type generics as not needed with this release

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Yashodhan Joshi <yjdoc2@gmail.com>
2023-08-01 22:44:16 +05:30
Yashodhan
0fc4c8747d
Merge pull request #2203 from yihuaf/yihuaf/clone-fallback
Implemented the clone fallback when clone3 returns ENOSYS
2023-08-01 10:27:44 +05:30
dependabot[bot]
d0c7a42275
chore(deps): bump errno from 0.3.1 to 0.3.2
Bumps [errno](https://github.com/lambda-fairy/rust-errno) from 0.3.1 to 0.3.2.
- [Changelog](https://github.com/lambda-fairy/rust-errno/blob/main/CHANGELOG.md)
- [Commits](https://github.com/lambda-fairy/rust-errno/compare/v0.3.1...v0.3.2)

---
updated-dependencies:
- dependency-name: errno
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-31 00:35:39 +00:00
yihuaf
3151278420 Implemented the clone fallback when clone3 returns ENOSYS
For a number of reasons, platforms can choose to block clone3 and force
return ENOSYS. We implement a clone fallback in the case that we can't
use clone3.

Also, clone3 has no libc wrapper at this point. The current
implementation calls the kernel version of the syscall directly. There
are undefined behaviors potentially when we create process bypassing the
libc. However, we have not observed any issue with our tests. This is
likely because `youki` runs short lived process and calls exec or exit
in the end. Nonetheless, we should have a backup plan and this change is
our way out in the case that we discover clone3 has issue as the default
code path.

Remove the use of the clone3 crate. We use `clone3` is a very specific
way to create a process. We don't have to support the many other flags
and usecases of the `clone3` call. So it is simpler for us to use the
libc crate directly for the syscall. This avoids an extra dependency and
reduces our binary size.

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-23 17:44:37 -07:00
dependabot[bot]
badfeb9087
chore(deps): bump thiserror from 1.0.43 to 1.0.44
Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/thiserror/releases)
- [Commits](https://github.com/dtolnay/thiserror/compare/1.0.43...1.0.44)

---
updated-dependencies:
- dependency-name: thiserror
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-07-24 00:40:07 +00:00
Eric Fang
f3da56e583
Make container_args clone-able (#2193)
Make the container_args clone-able and remove the use of references.
Container_args is passed to the intermediate and init process, so we
need to make sure it can across the clone process boundry safely by
allowing passing of the container_args ownership to the new process.

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-23 21:35:50 +09:00