1
0
Fork 0
mirror of https://github.com/containers/youki synced 2024-05-22 15:36:12 +02:00
Commit Graph

548 Commits

Author SHA1 Message Date
utam0k 72e2f3299f Change the license from MIT to Apache 2.0
Not that there was anything wrong with it, but I set the license first
without thinking about it, so I'll change it to Apache 2.0, which is
more explicit.
2021-08-13 18:02:15 +09:00
utam0k 1f613aefde
Merge pull request #198 from Furisto/cg-crate
Move cgroups into own crate
2021-08-12 21:06:41 +09:00
Furisto 60e1c9d8af Formatting 2021-08-12 11:31:26 +02:00
Furisto b7d8a951c1 Execute cgroups tests 2021-08-12 11:31:26 +02:00
Furisto 1231479b0e Move cgroup code to own crate 2021-08-12 11:31:26 +02:00
Furisto 01acab90d0
Merge pull request #197 from utam0k/refactoring/namespaces-lifetime
reduce the number of clones by introducing lifetime to namespaces.
2021-08-11 22:57:29 +02:00
utam0k c22bf6fc04
Merge pull request #196 from duduainankai/support-readonly-path
support readonly path
2021-08-12 00:10:39 +09:00
Zheming Li 22a989fd4b support readonly path 2021-08-11 23:04:38 +08:00
utam0k c1bc815513 fix conflicts. 2021-08-11 22:34:33 +09:00
utam0k 780f75ce94
Merge pull request #183 from saschagrunert/more-types
Make optional types optional
2021-08-11 18:56:02 +09:00
Sascha Grunert 4fe6703a4f
Merge pull request #3 from utam0k/pr/saschagrunert/183
fix handling when the configs around the LinuxDeviceCgroup is not present.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-08-11 09:05:31 +02:00
utam0k b672a44500
Merge pull request #195 from utam0k/refactoring/stdio
delete the original FileDescriptor.
2021-08-10 23:15:28 +09:00
utam0k 3fdf35cd11 fix tests of oci_spec. 2021-08-10 22:49:00 +09:00
utam0k 78700b0a68 fix cargo clippy. 2021-08-10 22:48:03 +09:00
utam0k 6b39bdb233 fix handling when the configs around the LinuxDeviceCgroup is not present.
> Unset values mean "all", mapping to a.
https://github.com/opencontainers/runtime-spec/blob/master/config-linux.md#allowed-device-list

> omiteempty
82ab996a5b/specs-go/config.go (L411)
2021-08-10 22:44:32 +09:00
utam0k e0d6a02d4c fix conflicts. 2021-08-10 22:06:18 +09:00
Sascha Grunert ec98e64f94
Fix compilation
Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-08-10 09:36:22 +02:00
utam0k fd697a4886
add handling when the configs around the proc is not present. 2021-08-10 09:27:45 +02:00
utam0k 0778c1b108
add handling when devices of cgv2 is not present. 2021-08-10 09:27:45 +02:00
utam0k a726e92df6
make sure to mount the default devices. 2021-08-10 09:27:45 +02:00
utam0k 0c6fbddd0a
fix typo. 2021-08-10 09:27:45 +02:00
utam0k 9da34ea09c
add handling when network priorities of cgv1 is not present. 2021-08-10 09:27:45 +02:00
utam0k 2e61675d28
add handling when blkio of cgv1 is not present. 2021-08-10 09:27:45 +02:00
utam0k 5cf745f79b
add handling when uid_mappings is not present. 2021-08-10 09:27:45 +02:00
utam0k 2e0ecd1203
make the error messages easier to understand when rootless doesn't have the require configs. 2021-08-10 09:27:45 +02:00
utam0k 2637df2bd4
add handling when mounts is not present. 2021-08-10 09:27:45 +02:00
utam0k 01e8f8c5c9
add handling when capabilities is not present. 2021-08-10 09:27:45 +02:00
utam0k dc3452ef0e
add handling in cgv1 when devices is not present. 2021-08-10 09:27:45 +02:00
utam0k 506c303a4d
add handling when hugetlb is not present. 2021-08-10 09:27:41 +02:00
utam0k 974f20dace
add handling when devices is not present. 2021-08-10 09:27:20 +02:00
utam0k 92ac22ae13
add handling when `mount_label` is not present. 2021-08-10 09:27:20 +02:00
utam0k 74af5f88f4
add handing when `rootfs_propagation` is not present. 2021-08-10 09:27:20 +02:00
Sascha Grunert fdf89fc9f8
Make optional types optional
This adds a few missing types and synchronizes them with the
implementation in containrs. Optional types are now not required any
more which means that all necessary code paths in youki needs to be
adapted as well.

Signed-off-by: Sascha Grunert <sgrunert@redhat.com>
2021-08-10 09:27:18 +02:00
Furisto f293c01005
Merge pull request #194 from utam0k/refactoring/rootless-lifetime
reduce the number of clones by introducing lifetime to rootless.
2021-08-09 14:28:07 +02:00
utam0k e8a27a8ab1 organize `stdio.rs` files as it is too small. 2021-08-09 16:26:15 +09:00
utam0k d99aafbf58 delete the original FileDescriptor.
I was going to develop it a bit more, but there was no point in being
particularly original, I deleted it.
2021-08-09 15:05:31 +09:00
utam0k 465fb1cee0 reduce the number of clones by introducing lifetime to namespaces. 2021-08-09 14:54:24 +09:00
utam0k 787a5505c2 reduce the number of clones by introducing lifetime to rootless. 2021-08-08 17:37:13 +09:00
utam0k 327e94d45e pass only the bare necessities in ContainerInitArgs. 2021-08-08 16:17:57 +09:00
utam0k 243d5f6dd1
Merge pull request #193 from Furisto/rundir
Improve looking up the root directory
2021-08-08 15:03:09 +09:00
Furisto 92e986cf82 Improve looking up the root directory 2021-08-08 01:11:58 +02:00
utam0k 5bc077861e
Merge pull request #192 from utam0k/fix/author_version
adjust author and version to current status.
2021-08-07 19:45:39 +09:00
utam0k 8db6c7857f adjust author and version to current status. 2021-08-07 18:55:32 +09:00
utam0k 21a7453e92
Merge pull request #191 from Furisto/events2
Implement events command for cgroup v2 stats
2021-08-07 15:15:27 +09:00
Furisto 4a37b57b4a Ensure stable order 2021-08-07 01:43:50 +02:00
Furisto 9ccbb1c131 Add additional stat tests 2021-08-07 01:10:03 +02:00
Furisto c1c65d9a5c Add documentation for stats methods 2021-08-07 00:04:29 +02:00
Furisto 19742287f9 Add tests for stat parsing functions 2021-08-06 23:24:06 +02:00
Furisto ce439a2b5b Use json as output format for events 2021-08-06 11:01:32 +02:00
Furisto c7a5f2f9bc Tests for cgroup v2 io 2021-08-06 10:51:32 +02:00