Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Question) The Linux kernel is a requirement, what APIs are used? #2933

Open
hardBSDk opened this issue Sep 25, 2024 · 6 comments
Open

(Question) The Linux kernel is a requirement, what APIs are used? #2933

hardBSDk opened this issue Sep 25, 2024 · 6 comments

Comments

@hardBSDk
Copy link

No description provided.

@hardBSDk hardBSDk changed the title (Question) The Linux kernel is a requirement, what APIs used on the kernel? (Question) The Linux kernel is a requirement, what APIs are used? Sep 25, 2024
@utam0k
Copy link
Member

utam0k commented Sep 26, 2024

We don't have a specific list for this question. How about running youki with bpftrace or ptrace?
e.g., https://github.com/containers/youki/blob/main/hack/debug.bt for bpftrace

@hardBSDk
Copy link
Author

@utam0k AFAIK Redox supports ptrace or strace, if only Linux system calls are used it can be easily ported.

I'm concerned with kernel interfaces.

@utam0k
Copy link
Member

utam0k commented Sep 26, 2024

Anyway, we should give it a try and observe the error message. Is there an easy way to run youki on Redox?

@hardBSDk
Copy link
Author

@utam0k I created a recipe for it yesterday, I didn't built it yet:

https://gitlab.redox-os.org/redox-os/cookbook/-/blob/master/recipes/wip/containers/youki/recipe.toml

If you want to build/test it use the following command on GNU Bash:

cd cookbook && git pull && cd .. && make r.youki

@YJDoc2
Copy link
Collaborator

YJDoc2 commented Sep 26, 2024

Hey @hardBSDk , by nature of containers themselves, cgroups and namespaces with their behavior similar to Linux would also be a requirement. I'm not familiar with redox, does it have similar concepts? I don't think these two come under POSIX, right?

@hardBSDk
Copy link
Author

@YJDoc2 Redox support namespaces using capabilities (Contain), like the Capsicum from FreeBSD.

Thus I think the file descriptors are similar to Linux, but it still don't have a cgroups equivalent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants