Yashodhan
601df9ecd3
Fix cgroups determination in exec implementation ( #2720 )
...
* Set cgroups path for tenant containers from main container
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* Ignore new_user_ns for creating cgroups path
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* Remove user_ns param completely
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* Add tests in podman rootless for exec
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* Fix add_task implementation for cgroups v2 and systemd
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* minor refactor in tenant builder
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* Add unit test for systemd add_task function
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* Fix task addition to properly add tasks via dbus api
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
* Fix cross cotainers for tests running
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
---------
Signed-off-by: Yashodhan Joshi <yjdoc2@gmail.com>
2024-04-27 21:49:58 +09:00
Yashodhan Joshi
4114513c38
Move userns spec validation into utils, add tests for it
2023-09-05 12:11:32 +05:30
Yashodhan Joshi
7078ad6882
Change rootless required function and privilege decision
2023-08-19 19:24:22 +05:30
Yashodhan Joshi
4e26799e15
Rename the rootless struct and correspondigs to UserNamespaceConfig and according.
2023-08-12 19:50:25 +05:30
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
Eric Fang
c3559e4a0a
refactored executor and executor manager ( #2186 )
...
* refactored executor and executor manager
Refactored the executor and executor manager to be clone-able and more
ergonomics.
Removed the use of executor manager with a vector of executor. Instead
we favor composing executors into a new executor. Composing also allows
the implementer to be precise about the execution orders. The old
executor manager with its vector implementation is not explicit enough
about the order when multiple executor is involved.
Re-implement the executor to be a function pointer instead of the Fn
family traits. Traits will type erase and difficult to deal with when
implementing clone.
Refactored the wasm related exectors to use the new scheme.
Signed-off-by: yihuaf <yihuaf@unkies.org>
* Add comments and address the reviews
Signed-off-by: yihuaf <yihuaf@unkies.org>
* Add a section in executor
Signed-off-by: yihuaf <yihuaf@unkies.org>
---------
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-21 21:12:21 +09:00
rongfu.leng
f6859f08ae
add io priority ( #2164 )
...
Signed-off-by: lengrongfu <1275177125@qq.com>
2023-07-17 08:41:29 -07:00
yihuaf
fb807b482c
fix syscall reference and lifetime
...
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-07-10 23:00:55 -07:00
Eric Fang
0d6b0d563b
Finally, remove anyhow
from the libcontainer dependency. ( #1937 )
...
* remove anyhow
Signed-off-by: yihuaf <yihuaf@unkies.org>
* removed anyhow from workload
Signed-off-by: yihuaf <yihuaf@unkies.org>
* clean up the anyhow errors
Signed-off-by: yihuaf <yihuaf@unkies.org>
* fix
Signed-off-by: yihuaf <yihuaf@unkies.org>
* fix
Signed-off-by: yihuaf <yihuaf@unkies.org>
* fix error message
Signed-off-by: yihuaf <yihuaf@unkies.org>
* fixed wasm error
Signed-off-by: yihuaf <yihuaf@unkies.org>
---------
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-19 19:03:37 +09:00
yihuaf
b82f42e4b5
implemented thiserror for containers
...
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-16 14:50:45 -07:00
Eric Fang
dcc13ff365
convert youki to use tracing ( #1899 )
...
* convert youki to use tracing
Signed-off-by: yihuaf <yihuaf@unkies.org>
* fix default logging to stderr
Signed-off-by: yihuaf <yihuaf@unkies.org>
* fix unsafe
Signed-off-by: yihuaf <yihuaf@unkies.org>
* turn off time stamp for text log to stderr
Signed-off-by: yihuaf <yihuaf@unkies.org>
---------
Signed-off-by: yihuaf <yihuaf@unkies.org>
2023-05-12 20:47:05 +09: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
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
utam0k
c9a69e4525
libcontainer: Make the workloads injectable
...
Signed-off-by: utam0k <k0ma@utam0k.jp>
2023-03-11 10:37:16 +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
utam0k
daf7fb2834
Update Rust 1.66
...
Signed-off-by: utam0k <k0ma@utam0k.jp>
2022-12-24 21:02:53 +09:00
Yashodhan Joshi
a96f8d0aac
Upgrade to 1.65 and fix lint errors
2022-11-07 17:05:13 +05:30
Yashodhan Joshi
bed057fb75
Extract detached into main builder struct, better error message handling
2022-10-20 19:55:23 +05:30
Yashodhan Joshi
c6b8b819ec
Make handling of exec containers slightly more idiomatic
...
Rather than drilling down RawFd from tenant to init_process,
this instead adds an enum in ContainerArgs, containing RawFd
2022-10-07 11:59:17 +05:30
Yashodhan Joshi
603475b478
Fix formatting
2022-10-06 14:00:10 +05:30
Yashodhan Joshi
911381c042
Fix exec command for detached
2022-10-04 16:01:05 +05:30
Szymon Gibała
1be1f50acc
Handle relative paths
...
Signed-off-by: Szymon Gibała <szymongib@gmail.com>
2022-02-26 14:12:54 +01:00
Furisto
211c05358c
Ensure exec can find config.json
2022-01-17 23:29:24 +01:00
Furisto
f7b5928728
Handle unit with unspecified parent
2022-01-06 23:03:25 +01:00
utam0k
75ab8d3b0e
manage the YoukiConfig file name itself because it's confusing.
2021-11-14 21:08:56 +09:00
utam0k
51e257fa71
Rename because config.json
is confusing
2021-11-14 20:50:31 +09:00
utam0k
5047c229c7
adapt to the delte command.
2021-11-01 13:39:35 +09:00
utam0k
d68cf57b8b
introduce the youki original config.
2021-10-31 16:23:03 +09:00
Furisto
9b7d2707e0
Fix ambigious names by renaming crate to libcontainer
2021-10-22 21:58:11 +02:00