Eric Fang
5c31fae50a
Implemented more thiserror
for libcontainer (Part 2) ( #1881 )
...
Implemented more thiserror for the libcontainer. This PR covers most of the low hanging fruits with smaller crates. Note, I decided to add a new syscall error wrapper that wraps the nix::Error, std::io::Error, and our own syscall crate. This aims to simplify where we call syscalls from 3 different sources and can simplify/unify many errors.
---------
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-07 20:24:00 -07:00
dependabot[bot]
aee9befb9d
chore(deps): bump libc from 0.2.142 to 0.2.143
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.142 to 0.2.143.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.142...0.2.143 )
---
updated-dependencies:
- dependency-name: libc
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-08 01:10:46 +00:00
Toru Komatsu
5edbc9e314
Merge pull request #1880 from containers/dependabot/cargo/wasmer-wasix-0.4.0
...
chore(deps): bump wasmer-wasix from 0.3.1 to 0.4.0
2023-05-06 10:43:18 +09:00
Eric Fang
5f31428347
rewrote the bpf example ( #1877 )
...
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-03 23:08:29 -07:00
Eric Fang
b51cf1ab25
Implement thiserror
for libcontainer - Part 1 ( #1876 )
...
* introduced libcontainer error
Signed-off-by: yihuaf <yihuaf@unkies.org>
* implemented syscall error
Signed-off-by: yihuaf <yihuaf@unkies.org>
* implemented namespace error
Signed-off-by: yihuaf <yihuaf@unkies.org>
* Implemented rest of the thiserror for process, syscall, namespace and etc.
Signed-off-by: yihuaf <yihuaf@unkies.org>
* Fix libcgroup error
Signed-off-by: yihuaf <yihuaf@unkies.org>
* remove dead code
Signed-off-by: yihuaf <yihuaf@unkies.org>
* fix dead code
Signed-off-by: yihuaf <yihuaf@unkies.org>
---------
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-04 10:47:45 +09:00
dependabot[bot]
03e60c6472
chore(deps): bump wasmer-wasix from 0.3.1 to 0.4.0
...
Bumps [wasmer-wasix](https://github.com/wasmerio/wasmer ) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/wasmerio/wasmer/releases )
- [Changelog](https://github.com/wasmerio/wasmer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/wasmerio/wasmer/commits/0.4.0 )
---
updated-dependencies:
- dependency-name: wasmer-wasix
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-04 01:18:55 +00:00
Mia
ae408ad4bb
Adopt thiserror
for libcgroups ( #1872 )
...
* convert systemd controllers to thiserror
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* finish systemd manager except for the CgroupManager impl
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* refactor controller traits to be internal
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* convert v1 controllers to thiserror
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* convert v2 controllers to thiserror
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* make StatsProvider an internal trait
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* replace v1 stats provider anyhow with thiserror
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* remove anyhow from v2 stats providers
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* fix lints
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* get rid of doc test error
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* convert managers from anyhow to thiserror
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* fix lints
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* get rid of the rest of the references to anyhow
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* AnyManager -> AnyCgroupManager
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* fix formatting
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
* fix lint in libcgroups devices
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
---------
Signed-off-by: squili <74628488+squili@users.noreply.github.com>
2023-05-03 14:59:55 +09:00
dependabot[bot]
8ec706bd9b
chore(deps): bump anyhow from 1.0.70 to 1.0.71
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.70 to 1.0.71.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.70...1.0.71 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-05-01 01:51:39 +00:00
dependabot[bot]
df8420d048
chore(deps): bump wasmtime-wasi from 8.0.0 to 8.0.1
...
Bumps [wasmtime-wasi](https://github.com/bytecodealliance/wasmtime ) from 8.0.0 to 8.0.1.
- [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/v8.0.0...v8.0.1 )
---
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-05-01 01:39:58 +00:00
github-actions[bot]
8f3018bf06
Merge pull request #1860 from containers/dependabot/cargo/vergen-8.1.3
2023-04-28 01:25:54 +00:00
dependabot[bot]
5b19b3bcb7
chore(deps): bump vergen from 8.1.2 to 8.1.3
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 8.1.2 to 8.1.3.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/8.1.2...8.1.3 )
---
updated-dependencies:
- dependency-name: vergen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 01:17:33 +00:00
dependabot[bot]
21a488116d
chore(deps): bump wasmtime from 8.0.0 to 8.0.1
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 8.0.0 to 8.0.1.
- [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/v8.0.0...v8.0.1 )
---
updated-dependencies:
- dependency-name: wasmtime
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-28 01:11:49 +00:00
Toru Komatsu
7d9d0917b2
Merge pull request #1822 from ipuustin/intel-rdt
...
Add support to Intel RDT.
2023-04-27 12:12:16 +09:00
boaz-quotient
f54ca68ecd
Override log opt when specified more than once ( #1847 )
...
* Override log opt when specified more than once
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
* Add a comment about the log flag "override" behavior
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
---------
Signed-off-by: Boaz Shuster <boaz.shuster.github@gmail.com>
Co-authored-by: Boaz Shuster <boaz.shuster.github@gmail.com>
2023-04-26 09:48:24 -07:00
Yashodhan Joshi
9407aee4f6
chore(deps): Update wasmtime-wasi version
2023-04-26 14:32:46 +05:30
Yashodhan Joshi
f8b32cd2e4
chore(deps): bump wasmtime from 7.0.0 to 8.0.0
...
Bumps [wasmtime](https://github.com/bytecodealliance/wasmtime ) from 7.0.0 to 8.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/v7.0.0...v8.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-04-26 14:31:39 +05:30
dependabot[bot]
8ecff3e43c
chore(deps): bump vergen from 8.1.1 to 8.1.2
...
Bumps [vergen](https://github.com/rustyhorde/vergen ) from 8.1.1 to 8.1.2.
- [Release notes](https://github.com/rustyhorde/vergen/releases )
- [Commits](https://github.com/rustyhorde/vergen/compare/8.1.1...8.1.2 )
---
updated-dependencies:
- dependency-name: vergen
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-26 01:16:12 +00:00
Toru Komatsu
75718d7fad
Named process for debugging. ( #1846 )
...
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-04-24 13:34:02 -07:00
Ismo Puustinen
5241604bb1
Intel RDT OCI support.
...
Signed-off-by: Ismo Puustinen <ismo.puustinen@intel.com>
2023-04-24 16:06:52 +03:00
dependabot[bot]
891282e91c
chore(deps): bump bitflags from 2.1.0 to 2.2.1
...
Bumps [bitflags](https://github.com/bitflags/bitflags ) from 2.1.0 to 2.2.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.1.0...2.2.1 )
---
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-24 12:17:54 +00:00
Toru Komatsu
74364490b6
Merge pull request #1825 from containers/dependabot/cargo/wasmer-3.2.0
...
chore(deps): bump wasmer from 2.3.0 to 3.2.0
2023-04-24 21:12:36 +09:00
rongfu.leng
59a888b6d3
add cleanup container ( #1824 )
...
Signed-off-by: lengrongfu <1275177125@qq.com>
2023-04-23 19:53:09 -07:00
yihuaf
4303381193
fix lint
...
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-04-24 02:52:05 +00:00
yihuaf
1909041fab
fix using wasm-wasix
for wasmer 3.0+
...
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-04-24 02:52:05 +00:00
dependabot[bot]
6e2a46079c
chore(deps): bump wasmer from 2.3.0 to 3.2.0
...
Bumps [wasmer](https://github.com/wasmerio/wasmer ) from 2.3.0 to 3.2.0.
- [Release notes](https://github.com/wasmerio/wasmer/releases )
- [Changelog](https://github.com/wasmerio/wasmer/blob/master/CHANGELOG.md )
- [Commits](https://github.com/wasmerio/wasmer/compare/2.3.0...v3.2.0 )
---
updated-dependencies:
- dependency-name: wasmer
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 02:52:05 +00:00
dependabot[bot]
94a801276c
chore(deps): bump syscalls from 0.6.9 to 0.6.10
...
Bumps [syscalls](https://github.com/jasonwhite/syscalls ) from 0.6.9 to 0.6.10.
- [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.9...0.6.10 )
---
updated-dependencies:
- dependency-name: syscalls
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2023-04-24 01:23:33 +00:00
yihuaf
27e8dff923
fix ci
...
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-04-21 22:47:46 +00:00
dependabot[bot]
bbf2f59531
chore(deps): bump libc from 0.2.141 to 0.2.142
...
Bumps [libc](https://github.com/rust-lang/libc ) from 0.2.141 to 0.2.142.
- [Release notes](https://github.com/rust-lang/libc/releases )
- [Commits](https://github.com/rust-lang/libc/compare/0.2.141...0.2.142 )
---
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-21 01:09:29 +00:00
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