Crates.io | cordon |
lib.rs | cordon |
version | 0.3.0 |
source | src |
created_at | 2023-09-20 06:04:39.948146 |
updated_at | 2023-12-02 22:00:21.617741 |
description | Embeddable sandboxing a-la-carte |
homepage | https://github.com/wgoodall01/cordon |
repository | https://github.com/wgoodall01/cordon |
max_upload_size | |
id | 977819 |
size | 191,037 |
Embeddable, customizable rootless containerization for Rust.
A complete, yet limited, working implementation of the library, which can spawn a user-specified program in a user namespace. This milestone will be complete when "whoami", run in the sandbox, returns "root."
We'll add the facility to enter a mount namespace in the sandbox, to change the apparent root of the sandboxed program, and to manipulate the mount table inside the sanbdox. This milestone will be complete when the output of "ls /" differs inside and outside the sandbox.
We'll add the ability to place the sandboxed program in a PID namespace, and to map user IDs inside the sandbox to user IDs outside the sandbox. This milestone will be complete when files written inside the sandbox appear to the host as owned by the outer process's user ID, and when "sh -c 'echo $$'" returns 1 inside the sandbox.
We'll add the ability to place the sandboxed child process in a Linux control group, and allow the caller to set its parameters. This milestone will be complete when the host can suspend and resume the sandboxed child using the cgroup freezer.