1
0
mirror of https://github.com/containers/youki synced 2025-11-10 19:08:42 +01:00
youki/experiment/selinux/README.md
bells17(Daiki Hayakawa) b17ff0de7e
Update basic_setup.md (#3253)
* Update basic_setup.md

Signed-off-by: bells17 <bells171@gmail.com>

* Edit the commented content

Signed-off-by: bells17 <bells171@gmail.com>

* Standardize format: add "$ " prefix to commands and sudo to systemctl

Signed-off-by: bells17 <bells171@gmail.com>

* Use https://github.com/youki-dev/youki

Signed-off-by: bells17 <bells171@gmail.com>

* Edit the commented content

Signed-off-by: bells17 <bells171@gmail.com>

* Edit the commented content

Signed-off-by: bells17 <bells171@gmail.com>

* Fix command format in docs

Signed-off-by: bells17 <bells171@gmail.com>

---------

Signed-off-by: bells17 <bells171@gmail.com>
2025-10-13 17:31:45 +05:30

52 lines
999 B
Markdown

# SELinux for Youki
This is an experimental project to create a SELinux library in Rust.
Ref: https://github.com/youki-dev/youki/issues/2718.
Reimplementation of [opencontainers/selinux](https://github.com/opencontainers/selinux) in Rust.
## Requirements
- [Lima](https://github.com/lima-vm/lima)
- QEMU
- Rust and Cargo
## Development Environment
### Setup with Lima
```console
# Start the VM with default settings (non-interactive mode)
$ ./lima-setup.sh
# For interactive mode (when not running in CI)
$ ./lima-setup.sh --interactive
# See all available options
$ ./lima-setup.sh --help
```
### Running the Project
Once the VM is set up:
```console
# Inside the VM, run tests
$ ./lima-run.sh cargo test
# Inside the VM, run the application
$ ./lima-run.sh cargo run
# Connect to the VM
$ limactl shell --workdir /workdir/youki/experiment/shared youki-selinux
```
### Cleaning Up
When finished with development:
```console
# Remove the Lima VM
$ ./lima-setup.sh --cleanup
```