1
0
mirror of https://github.com/containers/youki synced 2024-09-20 19:02:41 +02:00
Commit Graph

785 Commits

Author SHA1 Message Date
Eric Fang
a760731f1e
youki exec should not clean up on error (#1818)
* youki exec should not clean up on error

---------

Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-04-14 08:02:56 -07:00
Thomas Schubart
307e94172a
Merge pull request #1792 from kemkemG0/main
Modify pointer type from i8 to c_char
2023-04-11 20:57:34 +02:00
dependabot[bot]
3eaa0f8fa5
chore(deps): bump errno from 0.3.0 to 0.3.1
Bumps [errno](https://github.com/lambda-fairy/rust-errno) from 0.3.0 to 0.3.1.
- [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/compare/v0.3.0...v0.3.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-10 01:20:51 +00:00
kemkemG0
086462230c Change i8 to ::std::os::raw::c_char
Signed-off-by: kemkemG0 <kenshin.jpsdeveloper@gmail.com>
2023-04-09 17:57:46 -07:00
utam0k
7104494084
Update version check in validate_spec to support 1.X.Y version.
Previously, the validate_spec function only supported runtime spec versions that started with "1.0".
This commit updates the function to support all versions starting with "1." (e.g., 1.X.Y), making it compatible with a broader range of runtime spec versions.

Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-04-09 01:52:52 +00:00
Toru Komatsu
03eb78d13a
Merge pull request #1777 from utam0k/echild
Address ECHILD
2023-04-06 20:45:18 +09:00
dependabot[bot]
a3696847a8
chore(deps): bump bitflags from 2.0.2 to 2.1.0
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.0.2 to 2.1.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.0.2...2.1.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-04-06 01:05:35 +00:00
utam0k
df5fa86d30
Add the comment for ECHILD
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-04-05 23:42:59 +00:00
dependabot[bot]
306469ff19
chore(deps): bump vergen from 7.5.1 to 8.1.1 (#1764)
* chore(deps): bump vergen from 7.5.1 to 8.1.1

Bumps [vergen](https://github.com/rustyhorde/vergen) from 7.5.1 to 8.1.1.
- [Release notes](https://github.com/rustyhorde/vergen/releases)
- [Commits](https://github.com/rustyhorde/vergen/compare/7.5.1...8.1.1)

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

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

* Fix breaking changes due to vergen upgrade

* Improve error check as per the review

---------

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-04-05 08:17:17 -07:00
utam0k
891bd958ce
Address ECHILD
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-04-05 13:02:06 +00:00
dependabot[bot]
83d3c140ca
chore(deps): bump libc from 0.2.140 to 0.2.141
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.140 to 0.2.141.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.140...0.2.141)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-04-05 01:09:59 +00:00
dependabot[bot]
d74ec51236
chore(deps): bump serial_test from 1.0.0 to 2.0.0 (#1755)
Bumps [serial_test](https://github.com/palfrey/serial_test) from 1.0.0 to 2.0.0.
- [Release notes](https://github.com/palfrey/serial_test/releases)
- [Commits](https://github.com/palfrey/serial_test/compare/v1.0.0...v2.0.0)

---
updated-dependencies:
- dependency-name: serial_test
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-31 00:09:49 -07:00
Yashodhan
25cff9b7db
Merge pull request #1744 from yihuaf/yihuaf/fix
[Trivial] Remove the metadata semvar causing a warning.
2023-03-31 12:38:37 +05:30
Eric Fang
5a12fd7381
Fix stop container when prestart hook fails. (#1745)
* Fix stop container when prestart hook fails.
---------

Signed-off-by: Eric Fang <yihuaf@unkies.org>
Co-authored-by: Yashodhan <54112038+YJDoc2@users.noreply.github.com>
2023-03-30 10:46:55 -07:00
Toru Komatsu
e498e0fec3
Merge pull request #1743 from yihuaf/yihuaf/makefile
[Trivial] Fix makefile targets to use PHONY
2023-03-30 14:57:07 +09:00
Toru Komatsu
a2ea22d1f3
Merge pull request #1702 from containers/dependabot/cargo/wasmtime-7.0.0
chore(deps): bump wasmtime from 6.0.1 to 7.0.0
2023-03-30 14:47:39 +09:00
Eric Fang
9a8059f81f [Trivial] Remove the metadata semvar causing a warning.
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-29 20:20:12 +02:00
Eric Fang
8a8b8e34a0 [Trivial] Fix makefile targets to use PHONY
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-29 18:22:01 +02:00
utam0k
dcffd57015
v0.0.5
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-03-29 11:12:36 +00:00
dependabot[bot]
ac64c5b8de
chore(deps): bump mockall from 0.11.3 to 0.11.4
Bumps [mockall](https://github.com/asomers/mockall) from 0.11.3 to 0.11.4.
- [Release notes](https://github.com/asomers/mockall/releases)
- [Changelog](https://github.com/asomers/mockall/blob/master/CHANGELOG.md)
- [Commits](https://github.com/asomers/mockall/compare/v0.11.3...v0.11.4)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-27 01:58:38 +00:00
dependabot[bot]
9f1d0275f1
chore(deps): bump syscalls from 0.6.8 to 0.6.9
Bumps [syscalls](https://github.com/jasonwhite/syscalls) from 0.6.8 to 0.6.9.
- [Release notes](https://github.com/jasonwhite/syscalls/releases)
- [Changelog](https://github.com/jasonwhite/syscalls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jasonwhite/syscalls/compare/0.6.8...0.6.9)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-24 01:22:53 +00:00
Kris Nóva
bef32e083f
Introduce seccomp feature for libcontainer with musl (#1484)
* Introduce seccomp feature for libcontainer with musl

Signed-off-by: Kris Nóva <kris@nivenly.com>

* remove mystery merge conflict

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

---------

Signed-off-by: Kris Nóva <kris@nivenly.com>
Signed-off-by: Eric Fang <yihuaf@unkies.org>
Co-authored-by: Eric Fang <yihuaf@unkies.org>
2023-03-23 10:57:51 -07:00
Joshua Ford
543780cbfa
fix(libcontainer): Run test_is_executable with a created file
This test was failing on some popular Linux distros, like Fedora,
because `/boot/initrd.img` doesn't exist. This change alters the test so
that a non-executable file is generated in the system `/tmp` directory.

Signed-off-by: Joshua Ford <joshua.ford@protonmail.com>
2023-03-23 07:15:36 -05:00
Yashodhan Joshi
981edb003e Merge branch 'main' into dependabot/cargo/wasmtime-7.0.0 2023-03-23 17:14:39 +05:30
Yashodhan Joshi
a9b85d4782 Merge branch 'dependabot/cargo/wasmtime-wasi-7.0.0' into dependabot/cargo/wasmtime-7.0.0 2023-03-23 17:11:52 +05:30
Yashodhan
d0609348b1
Merge pull request #1654 from yihuaf/yihuaf/delete
Refactor youki delete to match runc/crun.
2023-03-22 19:54:54 +05:30
dependabot[bot]
ceef09e928
chore(deps): bump wasmtime-wasi from 6.0.1 to 7.0.0
Bumps [wasmtime-wasi](https://github.com/bytecodealliance/wasmtime) from 6.0.1 to 7.0.0.
- [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/v6.0.1...v7.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 01:10:46 +00:00
dependabot[bot]
4e313498a2
chore(deps): bump syscalls from 0.6.7 to 0.6.8
Bumps [syscalls](https://github.com/jasonwhite/syscalls) from 0.6.7 to 0.6.8.
- [Release notes](https://github.com/jasonwhite/syscalls/releases)
- [Changelog](https://github.com/jasonwhite/syscalls/blob/main/CHANGELOG.md)
- [Commits](https://github.com/jasonwhite/syscalls/compare/0.6.7...0.6.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 01:10:31 +00:00
dependabot[bot]
3da565badd
chore(deps): bump wasmtime from 6.0.1 to 7.0.0
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime) from 6.0.1 to 7.0.0.
- [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/v6.0.1...v7.0.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-21 01:09:11 +00:00
github-actions[bot]
5604f9406d
Merge pull request #1694 from containers/dependabot/cargo/anyhow-1.0.70 2023-03-20 02:04:26 +00:00
dependabot[bot]
7e2c932b1c
chore(deps): bump anyhow from 1.0.69 to 1.0.70
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.69 to 1.0.70.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.69...1.0.70)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 01:49:39 +00:00
dependabot[bot]
0e9e1214b1
chore(deps): bump bitflags from 2.0.1 to 2.0.2
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.0.1 to 2.0.2.
- [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.0.1...2.0.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-20 01:43:42 +00:00
Toru Komatsu
2260c1ea77
Merge pull request #1656 from yihuaf/yihuaf/foreground
Implement basic foreground mode
2023-03-17 13:55:46 +09:00
dependabot[bot]
42bebda6a7
chore(deps): bump bitflags from 2.0.0 to 2.0.1
Bumps [bitflags](https://github.com/bitflags/bitflags) from 2.0.0 to 2.0.1.
- [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.0.0...2.0.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-17 01:17:05 +00:00
Eric Fang
521606522e fix fmt
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-16 17:33:38 +01:00
Eric Fang
784a5c7a2e Add test
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-16 17:28:41 +01:00
Eric Fang
816739c170 Minor fixes
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-16 02:30:00 +01:00
Eric Fang
d64be1069c implemented foreground mode
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-16 02:21:25 +01:00
dependabot[bot]
c42da7549e
chore(deps): bump bitflags from 1.3.2 to 2.0.0 (#1670)
* chore(deps): bump bitflags from 1.3.2 to 2.0.0

Bumps [bitflags](https://github.com/bitflags/bitflags) from 1.3.2 to 2.0.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/1.3.2...2.0.0)

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

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

* Fix build issue

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

---------

Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: Eric Fang <yihuaf@unkies.org>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Eric Fang <yihuaf@unkies.org>
2023-03-14 11:52:07 -07:00
Eric Fang
882fd8d1c7 Kill all process for created and creating
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-11 04:25:32 +01:00
utam0k
cf382cfc51
with_executors
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-03-11 10:47:33 +09:00
utam0k
a344af9665
Fix the error of lint
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-03-11 10:37:18 +09:00
utam0k
c9a69e4525
libcontainer: Make the workloads injectable
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-03-11 10:37:16 +09:00
dependabot[bot]
c7e2dbcb81
chore(deps): bump clap_complete from 4.1.2 to 4.1.3
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.1.2 to 4.1.3.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.1.2...clap_complete-v4.1.3)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-11 10:32:33 +09:00
dependabot[bot]
0fc22570b0
chore(deps): bump clap from 4.1.4 to 4.1.6
Bumps [clap](https://github.com/clap-rs/clap) from 4.1.4 to 4.1.6.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/v4.1.4...v4.1.6)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-11 10:32:33 +09:00
dependabot[bot]
fed5da2f0f
chore(deps): bump clap_complete from 4.1.1 to 4.1.2
Bumps [clap_complete](https://github.com/clap-rs/clap) from 4.1.1 to 4.1.2.
- [Release notes](https://github.com/clap-rs/clap/releases)
- [Changelog](https://github.com/clap-rs/clap/blob/master/CHANGELOG.md)
- [Commits](https://github.com/clap-rs/clap/compare/clap_complete-v4.1.1...clap_complete-v4.1.2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2023-03-11 10:32:33 +09:00
Toru Komatsu
ef5daba2b4
Merge pull request #1637 from yihuaf/yihuaf/fix-exec
Fixed container init process not re-parent to youki main process
2023-03-11 10:24:05 +09:00
Toru Komatsu
8735005b5d
Merge pull request #1652 from containers/dependabot/cargo/libc-0.2.140
(auto merged) chore(deps): bump libc from 0.2.139 to 0.2.140
2023-03-10 17:18:09 +09:00
Eric Fang
16be64254f Fixed container init process not re-parent to youki main process
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-10 07:06:39 +01:00
Eric Fang
03bb81da0a fix
Signed-off-by: Eric Fang <yihuaf@unkies.org>
2023-03-10 06:53:12 +01:00