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

1132 Commits

Author SHA1 Message Date
Furisto
211c05358c Ensure exec can find config.json 2022-01-17 23:29:24 +01:00
utam0k
dea8ad6342
Merge branch 'main' of ssh://github.com/containers/youki into improvement/bump-rust-1.58.0 2022-01-17 22:42:41 +09:00
utam0k
63f77b2b44
Merge pull request #613 from Furisto/podman-delete
Ensure youki runs under podman
2022-01-17 22:42:16 +09:00
utam0k
7890e6ba3d
fix some warnings showed since rust 1.58.0 2022-01-16 21:29:31 +09:00
Furisto
d0d756a02a Ensure youki runs under podman 2022-01-14 22:07:33 +01:00
dependabot[bot]
c8aa54bcd9
chore(deps): bump pnet from 0.28.0 to 0.29.0
Bumps [pnet](https://github.com/libpnet/libpnet) from 0.28.0 to 0.29.0.
- [Release notes](https://github.com/libpnet/libpnet/releases)
- [Commits](https://github.com/libpnet/libpnet/compare/v0.28.0...v0.29.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-14 00:26:52 +00:00
utam0k
52f83a0ee8
Merge pull request #597 from Furisto/rootless-cg-path
Improve cgroup path handling for rootless containers
2022-01-11 21:54:17 +09:00
utam0k
b02f1b8ae3
clean up the shell script for youki integration test. 2022-01-09 17:58:13 +09:00
Yashodhan Joshi
8320f0500c Minor fix 2022-01-08 17:44:35 +05:30
Yashodhan Joshi
b2d3e53cc8 Merge branch 'main' of github.com:containers/youki into readonly_paths 2022-01-08 15:18:11 +05:30
Yashodhan Joshi
f5227f8e1a Add runtimetest dir to workflow 2022-01-08 15:16:14 +05:30
Yashodhan Joshi
5553d5ce6b Add readonly paths tests in integration tests and runtimetest 2022-01-08 15:15:59 +05:30
Yashodhan Joshi
ae9265ffcc Seprate runtimetest from youki workspace and make it its own crate 2022-01-07 11:40:17 +05:30
dependabot[bot]
fb6ee4c25f
chore(deps): bump libbpf-sys from 0.6.0-1 to 0.6.1-1
Bumps [libbpf-sys](https://github.com/libbpf/libbpf-sys) from 0.6.0-1 to 0.6.1-1.
- [Release notes](https://github.com/libbpf/libbpf-sys/releases)
- [Commits](https://github.com/libbpf/libbpf-sys/compare/0.6.0-1...0.6.1-1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-07 00:36:48 +00:00
Furisto
47273a7ecc Fix duplicate test folder names 2022-01-06 23:10:11 +01:00
Furisto
f7b5928728 Handle unit with unspecified parent 2022-01-06 23:03:25 +01:00
Furisto
099ddc7244 Ensure that valid cgroup path is provided 2022-01-06 22:48:50 +01:00
Yashodhan Joshi
815c5c3922 WIP add readonly paths to runtimetest 2022-01-06 20:51:23 +05:30
utam0k
49332e564b
Bump oci-spec to 0.5.3 to prevent specifying commit hash. 2022-01-06 21:06:33 +09:00
Yashodhan Joshi
78b7e942d7 Add runtime test crate and integrate it with integration tests 2022-01-06 16:30:19 +05:30
Yashodhan Joshi
5c6a833689 Fix OpenOptions issue
Remove unnecessary unsafe{}
Remove libc direct dependency and use nix instead
2022-01-05 11:40:11 +05:30
Furisto
743820f49f
Add commit id to info cmd 2022-01-05 00:19:11 +01:00
Furisto
956efa1c03 Harmonize executors 2022-01-04 15:20:42 +01:00
Furisto
5951d0ca86 Clippy & Formatting 2022-01-04 15:20:42 +01:00
Furisto
9c3a4706e8 Tests for wasmer handler 2022-01-04 15:20:42 +01:00
Furisto
b59857d328 Allow wat files 2022-01-04 15:20:42 +01:00
Furisto
9dbcab5788 Implement executor and default handler 2022-01-04 15:20:42 +01:00
Furisto
d6e563078e Minimal wasm implementation 2022-01-04 15:20:42 +01:00
Emanuele Aina
6ba0efdff9 style(spelling): Spellcheck the libcontainer crate
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
2022-01-03 22:06:03 +01:00
Emanuele Aina
3879619af7 style(spelling): Spellcheck the libcgroups crate
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
2022-01-03 22:06:03 +01:00
Emanuele Aina
94cea1ca4a style(spelling): Spellcheck the integration_test crate
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
2022-01-03 22:06:03 +01:00
Emanuele Aina
45813109cb fix(docs): Fix link syntax in liboci-cli/README.md
Signed-off-by: Emanuele Aina <emanuele.aina@collabora.com>
2022-01-03 22:06:03 +01:00
dependabot[bot]
b56c55c583
Bump fixedbitset from 0.4.0 to 0.4.1
Bumps [fixedbitset](https://github.com/petgraph/fixedbitset) from 0.4.0 to 0.4.1.
- [Release notes](https://github.com/petgraph/fixedbitset/releases)
- [Commits](https://github.com/petgraph/fixedbitset/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2022-01-03 01:09:52 +00:00
utam0k
597a0f0e6b
Merge pull request #579 from Furisto/cg-hugetlb-max
Use correct hugetlb interface file name
2021-12-31 21:20:00 +09:00
Yashodhan Joshi
7d8518d871 WIP Add readonly_paths tests 2021-12-31 17:08:05 +05:30
Yashodhan Joshi
3c40116803 Merge branch 'main' of github.com:containers/youki into readonly_paths 2021-12-31 17:00:23 +05:30
Thomas Schubart
5eaab7d78d
Merge pull request #578 from utam0k/fix/align-version
align the version of crates.
2021-12-31 00:19:23 +01:00
Furisto
059f2ee81f Use correct hugetlb interface file name 2021-12-30 17:26:52 +01:00
utam0k
89022f4366 specify the version of each crates. 2021-12-30 23:10:35 +09:00
utam0k
f2a2b20dfb align the version of crates. 2021-12-30 22:24:45 +09:00
utam0k
224aaa250e
Merge pull request #573 from Furisto/itest-list
Add option to list test groups
2021-12-28 22:18:16 +09:00
Furisto
ebd546d2dd Add option to list test groups 2021-12-28 13:40:05 +01:00
utam0k
ef1df5d61a
Merge pull request #569 from Furisto/cg-cpu-zero-as-default
Interpret a cpu quota of zero as default value
2021-12-28 16:22:22 +09:00
Furisto
a76f30ab64 Adapt cgroup v2 cpu integration tests 2021-12-27 19:10:53 +01:00
Furisto
dbe2155bca Follow runc's behavior when setting cpu.max
Runc interprets a a zero quota value as unrestricted.
2021-12-27 18:19:32 +01:00
Sarthak Singh
bb4b39830a Restored needs_to_handle as it no longer causes compiler errors 2021-12-26 11:03:15 -08:00
Sarthak Singh
a3a3918e75 Removed extra ; as it causes tests to fail on nightly 2021-12-26 11:02:04 -08:00
utam0k
4dc8863320
Merge pull request #562 from Furisto/cg-log-data-value
Log value that is written to cgroup file
2021-12-24 21:22:03 +09:00
dependabot[bot]
5f0667b9b7
Bump anyhow from 1.0.51 to 1.0.52
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.51 to 1.0.52.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.51...1.0.52)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-24 00:52:42 +00:00
Furisto
30f5a7c797
Log value that is written to cgroup file 2021-12-23 21:29:53 +01:00
Yashodhan Joshi
9acb01309b WIP commit for readonly_paths test 2021-12-22 11:15:37 +05:30
dependabot[bot]
d03e8e114a
Bump num_cpus from 1.13.0 to 1.13.1
Bumps [num_cpus](https://github.com/seanmonstar/num_cpus) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/seanmonstar/num_cpus/releases)
- [Changelog](https://github.com/seanmonstar/num_cpus/blob/master/CHANGELOG.md)
- [Commits](https://github.com/seanmonstar/num_cpus/compare/v1.13.0...v1.13.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-21 00:34:17 +00:00
Yashodhan Joshi
a61689332f Add test_inside_container function 2021-12-20 20:14:48 +05:30
dependabot[bot]
cb7a074dbb
Merge pull request #555 from containers/dependabot/cargo/fastrand-1.6.0 2021-12-20 06:25:49 +00:00
dependabot[bot]
7311ac7583
Bump fastrand from 1.5.0 to 1.6.0
Bumps [fastrand](https://github.com/smol-rs/fastrand) from 1.5.0 to 1.6.0.
- [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/v1.5.0...v1.6.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 01:17:10 +00:00
dependabot[bot]
69fd449fa5
Bump nix from 0.23.0 to 0.23.1
Bumps [nix](https://github.com/nix-rust/nix) from 0.23.0 to 0.23.1.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.23.0...v0.23.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-20 01:16:39 +00:00
utam0k
468e9fbd6b
Merge pull request #546 from knight42/feat/update-resources
feat: add --resource option to update subcommand
2021-12-19 10:44:51 +09:00
Thomas Schubart
fc70a5ed7c
Merge pull request #537 from YJDoc2/cgroups_blkio
Add Cgroup V1 block IO integration test
2021-12-19 00:51:08 +01:00
Jian Zeng
21eaf4e020
feat: add --resource option to update subcommand
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2021-12-18 23:56:43 +08:00
Yashodhan Joshi
c40a306f87 Refactor and improve error reporting 2021-12-18 13:38:08 +05:30
utam0k
7d63d2a36e
Merge pull request #543 from knight42/fix/set-blkio-weight
fix(libcgroup): make cgroup manager be able to set blkio weight
2021-12-17 22:48:48 +09:00
Jian Zeng
b2eafb8898 fix(libcgroup): set blkio weight
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2021-12-16 10:27:54 +08:00
Jian Zeng
09ecfba778 fix: address review comments
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2021-12-16 10:19:28 +08:00
Jian Zeng
37bf9387bb feat: add subcommand update 2021-12-16 10:19:28 +08:00
Jian Zeng
c3f15252de refactor: extract a common function create_cgroup_manager 2021-12-16 10:19:28 +08:00
Jian Zeng
d3552e7708 chore: update deps
Signed-off-by: Jian Zeng <anonymousknight96@gmail.com>
2021-12-16 10:19:28 +08:00
dependabot[bot]
9b224e0c15
Bump once_cell from 1.8.0 to 1.9.0
Bumps [once_cell](https://github.com/matklad/once_cell) from 1.8.0 to 1.9.0.
- [Release notes](https://github.com/matklad/once_cell/releases)
- [Changelog](https://github.com/matklad/once_cell/blob/master/CHANGELOG.md)
- [Commits](https://github.com/matklad/once_cell/compare/v1.8.0...v1.9.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-15 00:36:25 +00:00
Yashodhan Joshi
d05bb63099 Merge branch 'main' of github.com:containers/youki into cgroups_blkio 2021-12-14 20:37:47 +05:30
dependabot[bot]
667ef6a588
Merge pull request #534 from containers/dependabot/cargo/procfs-0.12.0 2021-12-14 13:43:36 +00:00
dependabot[bot]
a417b93371
Bump procfs from 0.11.1 to 0.12.0
Bumps [procfs](https://github.com/eminence/procfs) from 0.11.1 to 0.12.0.
- [Release notes](https://github.com/eminence/procfs/releases)
- [Commits](https://github.com/eminence/procfs/compare/v0.11.1...v0.12.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-14 13:32:35 +00:00
dependabot[bot]
e2140b3725
Bump libc from 0.2.111 to 0.2.112
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.111 to 0.2.112.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.111...0.2.112)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-14 13:32:19 +00:00
utam0k
82c621e1d5
Merge pull request #528 from Furisto/test-cpu-v2
Implement integration tests for cgroup v2 cpu
2021-12-14 22:30:54 +09:00
Jonathan Hult
02abc5f3ca
Update version for runc compatibility for Moby
Fix for #529

Signed-off-by: Jonathan Hult <jhult@mythics.com>
2021-12-13 22:31:35 -05:00
Furisto
712a07ec11 Review feedback
Logger should not log to file
2021-12-13 23:09:34 +01:00
Yashodhan Joshi
e3f995bd8e Add cgroups v1 blkio integration test 2021-12-13 20:46:19 +05:30
Yashodhan Joshi
75ef920a4a WIP blkio integration tests, currently only runs when weight and weight_device are supported 2021-12-13 17:31:07 +05:30
dependabot[bot]
53dfa8b6de
Bump pkg-config from 0.3.23 to 0.3.24
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs) from 0.3.23 to 0.3.24.
- [Release notes](https://github.com/rust-lang/pkg-config-rs/releases)
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/pkg-config-rs/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 06:33:35 +00:00
dependabot[bot]
109020bcef
Bump libc from 0.2.109 to 0.2.111
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.109 to 0.2.111.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.109...0.2.111)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-13 01:12:08 +00:00
Furisto
d1bdf10859
Fix integration tests 2021-12-12 16:17:59 +01:00
Furisto
d21706ea47 Update with latest 2021-12-12 00:30:34 +01:00
Furisto
763b21dca1 Cleanup 2021-12-11 23:52:04 +01:00
Furisto
effb728fb0 Ensure test directory is cleaned up 2021-12-11 23:30:25 +01:00
Furisto
e7d0e90529 Cleanup logger implementation 2021-12-11 20:38:06 +01:00
Furisto
69b5d76fe4 Cpu period tests 2021-12-11 18:24:06 +01:00
utam0k
243be9ff1c remove unneede impl Default
https://rust-lang.github.io/rust-clippy/master/index.html#derivable_impls
2021-12-11 21:33:21 +09:00
Furisto
9abeeb2407 Ensure cpu quota is not set if none is specified 2021-12-10 23:32:02 +01:00
Furisto
90ba7e066a Cpu weight & quota tests 2021-12-08 00:21:25 +01:00
Furisto
67bfc4c920 Implement equality macro
Implement an equality macro that returns a result instead of panicking
2021-12-07 23:27:40 +01:00
utam0k
aff2d19092
Merge pull request #516 from tsturzl/cgroups_network_integration_test
Integration test: cgroup v1 network tests, fix to memory tests
2021-12-07 20:50:08 +09:00
dependabot[bot]
974757f32d
Bump pkg-config from 0.3.22 to 0.3.23
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs) from 0.3.22 to 0.3.23.
- [Release notes](https://github.com/rust-lang/pkg-config-rs/releases)
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.22...0.3.23)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-07 00:40:34 +00:00
Furisto
3d7247b5ca Ensure cpu weight tests pass
Cpu weight should be set to maximum value if value exceeds the valid range.
2021-12-06 19:18:00 +01:00
dependabot[bot]
3cf41275ed
Bump libc from 0.2.108 to 0.2.109
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.108 to 0.2.109.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.108...0.2.109)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 01:38:21 +00:00
dependabot[bot]
86868292f7
Bump libbpf-sys from 0.5.0-2 to 0.6.0-1
Bumps [libbpf-sys](https://github.com/alexforster/libbpf-sys) from 0.5.0-2 to 0.6.0-1.
- [Release notes](https://github.com/alexforster/libbpf-sys/releases)
- [Commits](https://github.com/alexforster/libbpf-sys/compare/0.5.0-2...0.6.0-1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-12-06 01:09:16 +00:00
Furisto
d5818cff01 Add logging & sort cargo.toml entries 2021-12-05 21:58:21 +01:00
Travis Sturzl
923c0c46b2 appease the great clippy 2021-12-05 11:49:30 -07:00
Travis Sturzl
d3133c5da7 check that expected network interfaces exist to determine if test can
run
2021-12-05 11:37:21 -07:00
Furisto
3a60604822 Move tests for cpu variants (v1,v2) to own module 2021-12-05 15:42:24 +01:00
Theo Paris
2eef38dfc7
Add shell completion (#515) 2021-12-05 14:39:08 +01:00
Travis Sturzl
a42af6ed1e network tests passing, fix to memory tests 2021-12-04 21:37:59 -07:00
Travis Sturzl
eb083a162a
Merge pull request #513 from Furisto/systemd-part4
Improvements to cgroup support
2021-12-04 20:15:50 -07:00
Furisto
af4d403fff Cleanup & Clippy 2021-12-04 11:36:13 +01:00
David Gibson
3626f4f4ec Move global command line options to liboci-cli crate
The OCI CLI document doesn't define any required global options, but there
are a number which are commonly accepted by most runtimes.  We define this
subset there, and incorporate it into the top-level Parser in Youki using

fixes #508

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:55 +11:00
David Gibson
2b66005d93 Move subcommand enums to liboci-cli crate
Because we want to allow a final user to add extension commands
easily, it doesn't work to entirely move the enum of runtime
subcommands into the liboci-cli crate.  However, using the
incoporate those into the top-level enum defined by youki.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:55 +11:00
David Gibson
88ea432b92 Remove version & author from each subcommand
Currently every individual subcommand of youki has clap attributes giving
the youki version and authors.  That seems a bit redundant, since this
information is also on the top level Opts structure.

Having the tags on each does have an effect though: it means that, e.g.
"youki create --help" will give the version and author, as well as plain
"youki --help".  Likewise "youki create --version" will give a result as
well as "youki --version".

Including this is of limited value, though, since it can be easily obtained
from the top level command.  It also provides a barrier to splitting out
the frontend argument parsing from the rest of youki, so remove it.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:55 +11:00
David Gibson
09d9fae8cd Move unspecified, but common subcommands to liboci-cli crate
The OCI Runtime Command Line Interface specification[0] specifies only five
subcommands to implement.  However, there are a number of other subcommands
that are commonly implemented by runtimes, and commonly used by their
clients.

Move the parsing of a number of those subcommands into the liboci-cli
crate.  This leaves only one subcommand "info" parsed in the youki crate.
As far as I can tell this is a youki specific extension, since it doesn't
appear in either runc or crun.

[0] https://github.com/opencontainers/runtime-tools/blob/master/docs/command-line-interface.md

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:55 +11:00
David Gibson
ea448d05a8 Add some rudimentary documentation to the liboci-cli crate
In particular it has a summary of what subcommands implemented by various
runtimes are included in the frontend crate so far.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-03 12:41:50 +11:00
David Gibson
bf5577ccc0 Move argument structures for specified subcommands to a new crate
It would be useful to have an independent crate covering solely the OCI
command line front end of youki, to which other backends can then be
written.

To start on that, we create a new "oci-runtime-clap" crate, and move some
subcommand structure definitions into it.  For now we only move the
subcommands which are actually specified in the OCI runtime command line
interface document (v1.0.1):

https://github.com/opencontainers/runtime-tools/blob/master/docs/command-line-interface.md

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-02 17:20:31 +11:00
David Gibson
58cad9a27c Split implementation of OCI commands from the argument structures
Currently youki implements each OCI command as a single "exec()" method on
the structure encoding the arguments for that command.  Tying the
implementation to the argument structure makes it difficult to split the
container backend from the command line front end.

So, rework each command as a standalone function.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-12-02 17:20:31 +11:00
utam0k
bf9a22ca10
Merge pull request #511 from yihuaf/yihuaf/log
Fix log files and remove env_logger
2021-12-02 07:11:50 +09:00
yihuaf
300b396e32 add a test for logfile 2021-12-01 05:39:35 +01:00
yihuaf
16bc2a598f fix logger implementation
remove env_logger and use our own logger
2021-12-01 05:10:40 +01:00
Furisto
2902eaf348 Add feature config 2021-11-30 22:42:12 +01:00
Furisto
b501451a47 Remove dead code attributes 2021-11-30 21:04:22 +01:00
dependabot[bot]
2b73cb97eb
Bump anyhow from 1.0.50 to 1.0.51
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.50 to 1.0.51.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.50...1.0.51)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 00:38:07 +00:00
Furisto
d5a36cc067 Enable pause/resume & stats 2021-11-29 23:11:30 +01:00
Furisto
f5cf390458 Ensure controllers are attached 2021-11-29 21:59:18 +01:00
utam0k
34ce2335af
Merge pull request #502 from containers/dependabot/cargo/anyhow-1.0.50
Bump anyhow from 1.0.48 to 1.0.50
2021-11-29 11:11:49 +09:00
dependabot[bot]
8792762cb6
Bump procfs from 0.11.0 to 0.11.1
Bumps [procfs](https://github.com/eminence/procfs) from 0.11.0 to 0.11.1.
- [Release notes](https://github.com/eminence/procfs/releases)
- [Commits](https://github.com/eminence/procfs/compare/v0.11.0...v0.11.1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 01:12:26 +00:00
dependabot[bot]
824f1abd13
Bump anyhow from 1.0.48 to 1.0.50
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.48 to 1.0.50.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.48...1.0.50)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-29 01:11:53 +00:00
utam0k
8310ac4f56
Merge pull request #499 from Furisto/systemd-part3
Support resource restrictions for rootless containers
2021-11-29 07:26:07 +09:00
Furisto
1a14c43c5b
Review feedback
- Add cgroups path to error context
- Correct spelling mistake
- Update sequence diagram
- Implement TryFrom for CgroupsPath
2021-11-28 20:43:16 +01:00
utam0k
54cbd15fa8
make complex loglevel decision easy to understand. (#482)
* make complex loglevel decision easy to understand.

* guard env val for unit tests.

* make some unit tests serial to handle env val.
2021-11-27 20:50:46 -08:00
Furisto
f92b265b80
Ensure rootless containers work on v1 2021-11-25 20:47:40 +01:00
Furisto
9cff02435b Cleanup 2021-11-24 22:35:21 +01:00
Furisto
419284137e Check if unprivileged user namespaces are enabled 2021-11-24 19:47:58 +01:00
Furisto
64fd60dda3 Systemd manager updates
- Use systemd client to find systemd cgroup root
- Add error context
- Manager debug impl
- Comments
- Set default slice name for rootless and rootfull containers
2021-11-24 19:47:57 +01:00
Furisto
c6b91abf35 Define & implement trait for systemd client 2021-11-24 19:47:57 +01:00
Furisto
190a0bad38 Add session dbus connection 2021-11-24 19:47:57 +01:00
Furisto
f12082a9a6 Apply resource restrictions in rootless mode 2021-11-24 19:47:57 +01:00
David Gibson
d9233e2411 Use /tmp/youki-<uid> rather than /tmp/youki/<uid> in determine_root_path
determine_root_path goes through various options to find a state storage
location, the last of which is /tmp/youki/<uid>.

If a user (say, UID 1000) uses youki, and this final option is selected,
/tmp/youki will be created as well as /tmp/youki/1000.  Both will be
created owned by UID 1000 and with write permissions only for that user.

Them, if another user (say, UID 1001) attempts to use youki and the same
final option is selected, it will fail, because it cannot create
/tmp/youki/1001 under the /tmp/youki owned by UID 1000.

There's really no way to safely create a multi-user shared subdirectory in
/tmp, so instead we should create our per-user directory directly under
/tmp.  We do this by calling it /tmp/youki-<uid> instead.

fixes #496

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-11-24 14:21:54 +11:00
David Gibson
6a496886a8 Create a subdirectory under XDG_RUNTIME_DIR
When using a root state directory from $XDG_RUNTIME_DIR, or from it's
default value of /run/user/<uid>, we don't add a tag specific to youki
to the path.  That means the directories for individual containers
will be placed directly in the general use runtime dir.

That's against normal conventions, and could mean that "youki list"
will see files or directories from other software as if they were
youki managed containers.  Therefore, add "youki" to the base runtime
path from XDG.

fixes #487

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
2021-11-23 15:43:14 +11:00
dependabot[bot]
9d86ea0beb
Bump anyhow from 1.0.47 to 1.0.48
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.47 to 1.0.48.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.47...1.0.48)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-23 00:38:12 +00:00
utam0k
82b9051e24
Merge pull request #484 from containers/dependabot/cargo/libc-0.2.108
Bump libc from 0.2.107 to 0.2.108
2021-11-22 10:58:12 +09:00
dependabot[bot]
bda6f5fd6f
Bump anyhow from 1.0.45 to 1.0.47
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.45 to 1.0.47.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.45...1.0.47)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 01:09:14 +00:00
dependabot[bot]
0dd9bb1156
Bump libc from 0.2.107 to 0.2.108
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.107 to 0.2.108.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.107...0.2.108)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-22 01:09:08 +00:00
Thomas Schubart
565d1ce736
Merge pull request #479 from Furisto/systemd-part2
Systemd support for memory and unified restrictions
2021-11-19 18:52:05 +01:00
Furisto
53d7313ab0 Cleanup 2021-11-19 16:49:17 +01:00
utam0k
193f30443b
Merge branch 'main' of ssh://github.com/containers/youki into feature/config 2021-11-18 14:12:44 +09:00
utam0k
5d461f1b79
rename the config file from yconfig to youki_config. 2021-11-18 14:08:56 +09:00
Furisto
be6471496e Simplify tests 2021-11-17 23:59:44 +01:00
Furisto
ac01da8b60 Handle unlimited memory & fix cpu calculation 2021-11-17 23:20:38 +01:00
Furisto
bd97c153d1 Tests for systemd unified controller 2021-11-17 23:20:38 +01:00
Furisto
76bcc3cdc2 Implement systemd unified controller 2021-11-17 23:20:38 +01:00
Furisto
2181e2a896 Tests for systemd memory controller 2021-11-17 23:20:38 +01:00
Furisto
ca77bb8579 Implement systemd memory controller 2021-11-17 23:20:38 +01:00
unknowndevQwQ
acf6e31176
Add debug flag (#465) 2021-11-17 20:35:59 +01:00
utam0k
ba08bb3231
Merge pull request #474 from unknowndevQwQ/adjusting_the_position
style: adjusting the position of parameters and flag declarations
2021-11-15 21:08:57 +09:00
dependabot[bot]
f7a2601cb8
Bump mio from 0.7.14 to 0.8.0
Bumps [mio](https://github.com/tokio-rs/mio) from 0.7.14 to 0.8.0.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/master/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.7.14...v0.8.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-15 01:08:02 +00:00
utam0k
75ab8d3b0e
manage the YoukiConfig file name itself because it's confusing. 2021-11-14 21:08:56 +09:00
utam0k
f0596ea700
avoid breaking changes as a library. 2021-11-14 20:55:57 +09:00
utam0k
51e257fa71
Rename because config.json is confusing 2021-11-14 20:50:31 +09:00
utam0k
074b1150f0
add some tests for YoukiConfig. 2021-11-14 20:48:41 +09:00
utam0k
c070dd4c0f
add some comments about YoukiConfig. 2021-11-14 20:47:48 +09:00
unknowndevQwQ
1f3d94ede3 style: adjusting the position of parameters and flag declarations 2021-11-13 20:21:47 +08:00
tommady
afe4921237
Merge pull request #472 from tsturzl/fix_test_make_parent_mount_private
Fix test_make_parent_mount_private
2021-11-13 15:55:28 +08:00
Travis Sturzl
ccde8c1e0f cgroups v1 memory test 2021-11-12 23:00:19 -07:00
Travis Sturzl
f1c662b14d check either parent mount point 2021-11-12 22:12:27 -07:00
yihuaf
b8adcf609a enable default error code for seccomp 2021-11-12 07:49:47 +01:00
utam0k
a8dfdd21a9
Merge branch 'main' of ssh://github.com/containers/youki into feature/config 2021-11-11 21:55:24 +09:00
utam0k
e37554846c
cgroup should not be capitalized.
https://www.kernel.org/doc/html/latest/admin-guide/cgroup-v2.html#terminology
2021-11-08 14:21:34 +09:00
utam0k
f237d86c5b
Merge pull request #460 from containers/dependabot/cargo/libc-0.2.107
Bump libc from 0.2.106 to 0.2.107
2021-11-08 13:58:22 +09:00
Travis Sturzl
22f4fab0fe
Integration test linux cgroups cpus (#462) 2021-11-07 20:57:08 -08:00
dependabot[bot]
c9c2a213df
Bump libc from 0.2.106 to 0.2.107
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.106 to 0.2.107.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.106...0.2.107)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-08 01:11:36 +00:00
yukang
e96b756af1 merge with master 2021-11-07 15:13:37 +08:00
utam0k
2281b07f29
Merge pull request #451 from Furisto/systemd
Support resource control via systemd
2021-11-07 14:05:09 +09:00
Furisto
5ddc634d0b Incorporate review feedback
- Correct spelling mistake
- Simplify cpu realtime check
- Reduce allocations
- Add docs
- Remove systemd dependency from libcontainer
2021-11-06 19:21:32 +01:00
utam0k
bba78db9bf
Merge pull request #452 from tommady/279-increate-the-code-coverage-of-src-container-init-process-4
adding test_sync_seccomp for process/container_main_process
2021-11-05 10:16:22 +09:00
tommady
3a11ccbd5a
address comment 2021-11-05 00:17:01 +00:00
tommady
f5fa26960a
adjust test_sync_seccomp assertion way 2021-11-04 10:10:04 +00:00
tommady
baf4e5180b
adding test_sync_seccomp 2021-11-04 09:13:23 +00:00
Furisto
56d4d13d9a Cleanup 2021-11-03 22:06:28 +01:00
dependabot[bot]
ef85025a2c
Bump anyhow from 1.0.44 to 1.0.45
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.44 to 1.0.45.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.44...1.0.45)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-03 00:54:21 +00:00
dependabot[bot]
365023a7a3
Bump libbpf-sys from 0.5.0-1 to 0.5.0-2
Bumps [libbpf-sys](https://github.com/alexforster/libbpf-sys) from 0.5.0-1 to 0.5.0-2.
- [Release notes](https://github.com/alexforster/libbpf-sys/releases)
- [Commits](https://github.com/alexforster/libbpf-sys/compare/0.5.0-1...0.5.0-2)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-02 00:34:01 +00:00
Furisto
b8cbd5532e Tests for systemd cpu controller 2021-11-01 18:27:58 +01:00
Furisto
7bdb986038 Tests for systemd cpuset controller 2021-11-01 16:34:15 +01:00
yihuaf
8c9aba47fd implement json logger and refactor 2021-11-01 12:39:24 +01:00
yihuaf
ae3a26d195 add env_logger 2021-11-01 12:38:43 +01:00
Furisto
d483d5383b Tests for systemd pids controller 2021-11-01 10:53:30 +01:00
Furisto
8b85bdc69b Implement systemd pids controller 2021-11-01 10:10:21 +01:00
yihuaf
c3f3e06e76 refactor logger to include format 2021-11-01 09:12:22 +01:00
utam0k
5047c229c7
adapt to the delte command. 2021-11-01 13:39:35 +09:00
dependabot[bot]
b8d4d8f74e
Bump libc from 0.2.105 to 0.2.106
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.105 to 0.2.106.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.105...0.2.106)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-11-01 01:14:14 +00:00
Furisto
63daaddcd4 Implement systemd cpuset controller 2021-10-31 21:32:50 +01:00
Furisto
37d9fa4cf7 Implement systemd cpu controller 2021-10-31 10:55:38 +01:00
tommady
1798ea41a0
address comment, try to let #[cfg_attr(coverage, no_coverage)] appears once 2021-10-31 07:42:39 +00:00
tommady
b10abdef99
address comment, use bail instead of Err(anyhow) 2021-10-31 07:31:32 +00:00
utam0k
d68cf57b8b
introduce the youki original config. 2021-10-31 16:23:03 +09:00
tommady
0a42340768
modify capability into new way 2021-10-30 20:01:09 +00:00
tommady
3e8a0839c6
modify all syscall test into new way except capability 2021-10-30 19:45:40 +00:00
tommady
a98eb468d3
fix skip syscall linux on code coverage 2021-10-30 18:00:29 +00:00
tommady
56e8c37243
fix skip syscall linux on code coverage 2021-10-30 17:18:47 +00:00
tommady
9bc1f73cc4
skip syscall linux on code coverage 2021-10-30 17:15:48 +00:00
tommady
9f3e3f2594
fix clippy lints 2021-10-30 17:11:55 +00:00
tommady
fe085cb8a3
modify syscall test into beauty 2021-10-30 17:05:56 +00:00
tommady
d35fb3ceb9
increate the code coverage of src process part2 (#436)
* adding test_sync_seccomp

* remove redundant code from test_sync_seccomp

* using unwrap_err in test_sync_seccomp

* address comment, add a join to wait spawn thread finished

* adding test_masked_path

* fix lints and integration test for linux_masked_paths

* cannot reproduce the integration failure on local, try to fix test1

* adding quote attempting 2

* attempting 3 figuring out it is about the mount function behavior

* attempting 4 modify input param type

* attempting 5 replace back mount read only dir

* attempting 6 replace back the dev/null mount

* attempting 7 replace syscall linux bail with anyhow

* attempting 8 syscall linux anyhow with context

* syscall linux change to use anyhow then the error can be downcast_ref

* fix return error lints

* address comment, separate a big testcase into pieces
2021-10-29 12:12:20 +02:00
Furisto
2bdf0fb80b Support removal of systemd unit 2021-10-28 22:20:43 +02:00
Furisto
692f0adf86 Minimal working version 2021-10-28 21:53:58 +02:00
utam0k
4609abc867
Merge pull request #440 from containers/dependabot/cargo/nix-0.23.0
Bump nix from 0.22.0 to 0.23.0
2021-10-28 11:26:45 +09:00
dependabot[bot]
6959ed326c
Bump nix from 0.22.0 to 0.23.0
Bumps [nix](https://github.com/nix-rust/nix) from 0.22.0 to 0.23.0.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.22.0...v0.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-28 00:48:28 +00:00
dependabot[bot]
cdcc39f443
Bump errno from 0.2.7 to 0.2.8
Bumps [errno](https://github.com/lambda-fairy/rust-errno) from 0.2.7 to 0.2.8.
- [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.2.7...v0.2.8)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-28 00:48:13 +00:00
Yashodhan Joshi
d44944a849 Update clap to beta 5
Reintroduce forbid_empty_values for container_id in commands
2021-10-27 15:55:16 +05:30
Yashodhan Joshi
6f9acc3bf8 Update Caps version from github ref to stable release 2021-10-27 15:26:20 +05:30
yihuaf
77080b5642
implemented seccomp notify integration tests (#435)
* implemented seccomp notify integration tests

* skip seccomp notify for runc
2021-10-25 16:48:32 -07:00
Furisto
edf47d8cfc Remove systemd crate 2021-10-25 20:34:14 +02:00
Furisto
d018a24814 Move dbus code to libcgroups create 2021-10-25 20:16:56 +02:00
Nimrod Shneor
a3ce77064d Initial implementation of resource-control via systemd and dbus 2021-10-25 19:39:08 +02:00
utam0k
530d4a0ecb
Merge pull request #428 from containers/dependabot/cargo/pkg-config-0.3.22
Bump pkg-config from 0.3.21 to 0.3.22
2021-10-25 21:07:57 +09:00
dependabot[bot]
f5e74a89eb
Bump mio from 0.7.13 to 0.7.14
Bumps [mio](https://github.com/tokio-rs/mio) from 0.7.13 to 0.7.14.
- [Release notes](https://github.com/tokio-rs/mio/releases)
- [Changelog](https://github.com/tokio-rs/mio/blob/v0.7.14/CHANGELOG.md)
- [Commits](https://github.com/tokio-rs/mio/compare/v0.7.13...v0.7.14)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 04:38:57 +00:00
utam0k
9d4e6cd107
Merge pull request #429 from containers/dependabot/cargo/systemd-0.9.0
Bump systemd from 0.8.2 to 0.9.0
2021-10-25 13:32:59 +09:00
dependabot[bot]
8df5e8d8a8
Bump systemd from 0.8.2 to 0.9.0
Bumps [systemd](https://github.com/jmesmon/rust-systemd) from 0.8.2 to 0.9.0.
- [Release notes](https://github.com/jmesmon/rust-systemd/releases)
- [Changelog](https://github.com/jmesmon/rust-systemd/blob/master/release.toml)
- [Commits](https://github.com/jmesmon/rust-systemd/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 01:32:50 +00:00
dependabot[bot]
bdfd884d47
Bump pkg-config from 0.3.21 to 0.3.22
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs) from 0.3.21 to 0.3.22.
- [Release notes](https://github.com/rust-lang/pkg-config-rs/releases)
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.21...0.3.22)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 01:32:29 +00:00
dependabot[bot]
af85b99278
Bump nix from 0.22.1 to 0.23.0
Bumps [nix](https://github.com/nix-rust/nix) from 0.22.1 to 0.23.0.
- [Release notes](https://github.com/nix-rust/nix/releases)
- [Changelog](https://github.com/nix-rust/nix/blob/master/CHANGELOG.md)
- [Commits](https://github.com/nix-rust/nix/compare/v0.22.1...v0.23.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-25 01:32:06 +00:00
utam0k
82bb9c23ae
Merge pull request #411 from containers/dependabot/cargo/libbpf-sys-0.5.0-1
Bump libbpf-sys from 0.4.0-2 to 0.5.0-1
2021-10-24 21:47:49 +09:00
dependabot[bot]
9762f1ff77
Bump libbpf-sys from 0.4.0-2 to 0.5.0-1
Bumps [libbpf-sys](https://github.com/alexforster/libbpf-sys) from 0.4.0-2 to 0.5.0-1.
- [Release notes](https://github.com/alexforster/libbpf-sys/releases)
- [Commits](https://github.com/alexforster/libbpf-sys/compare/0.4.0-2...0.5.0-1)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-24 11:57:59 +00:00
dependabot[bot]
51d087408f
Bump pkg-config from 0.3.20 to 0.3.21
Bumps [pkg-config](https://github.com/rust-lang/pkg-config-rs) from 0.3.20 to 0.3.21.
- [Release notes](https://github.com/rust-lang/pkg-config-rs/releases)
- [Changelog](https://github.com/rust-lang/pkg-config-rs/blob/master/CHANGELOG.md)
- [Commits](https://github.com/rust-lang/pkg-config-rs/compare/0.3.20...0.3.21)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-24 11:57:59 +00:00
dependabot[bot]
f462789be9
Bump libc from 0.2.101 to 0.2.105 (#419)
Bumps [libc](https://github.com/rust-lang/libc) from 0.2.101 to 0.2.105.
- [Release notes](https://github.com/rust-lang/libc/releases)
- [Commits](https://github.com/rust-lang/libc/compare/0.2.101...0.2.105)

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

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2021-10-24 04:56:09 -07:00
Thomas Schubart
ff06f6e34d
Merge pull request #410 from containers/dependabot/cargo/dbus-0.9.5
Bump dbus from 0.9.3 to 0.9.5
2021-10-24 11:51:06 +02:00
dependabot[bot]
45c997330b
Bump anyhow from 1.0.43 to 1.0.44
Bumps [anyhow](https://github.com/dtolnay/anyhow) from 1.0.43 to 1.0.44.
- [Release notes](https://github.com/dtolnay/anyhow/releases)
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.43...1.0.44)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-24 09:36:39 +00:00
dependabot[bot]
574859c53a
Bump dbus from 0.9.3 to 0.9.5
Bumps [dbus](https://github.com/diwic/dbus-rs) from 0.9.3 to 0.9.5.
- [Release notes](https://github.com/diwic/dbus-rs/releases)
- [Commits](https://github.com/diwic/dbus-rs/compare/dbus-v0.9.3...dbus-v0.9.5)

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

Signed-off-by: dependabot[bot] <support@github.com>
2021-10-24 09:36:22 +00:00
tommady
777a77458a Merge branch 'main' into 279-increate-the-code-coverage-of-src-process 2021-10-23 14:40:38 +00:00
yukang
08ebd9e373 update to edition 2021 2021-10-23 22:32:47 +08:00
yukang
1999644f1b merge with main 2021-10-23 22:23:03 +08:00
Furisto
52a262f306
Fix ignored files 2021-10-22 22:05:15 +02:00
Furisto
359db4cfc7
Adapt CI scripts 2021-10-22 22:05:15 +02:00
Furisto
ab8fbfcc4c
Move items misplaced during rebase 2021-10-22 22:05:15 +02:00
Furisto
087938243b
Add lib prefix to other crates 2021-10-22 22:05:14 +02:00
Furisto
f44ff1681a
Fix failing doc tests 2021-10-22 21:58:12 +02:00
Furisto
9b7d2707e0
Fix ambigious names by renaming crate to libcontainer 2021-10-22 21:58:11 +02:00
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