1
0
mirror of https://github.com/containers/youki synced 2026-04-27 10:51:21 +02:00
youki/experiment/selinux
Ganesh Tiwari 57999c4301
fix: use correct fedora version number and deprecate riskv64 (#3497)
Signed-off-by: Ganesh Tiwari <ganesht049@gmail.com>
2026-04-17 06:08:27 +09:00
..
src selinux: lima vm 2025-05-08 20:57:17 +09:00
Cargo.lock rollup multiple dep updates (#3084) 2025-02-25 15:29:30 +05:30
Cargo.toml Update basic_setup.md (#3253) 2025-10-13 17:31:45 +05:30
lima-run.sh selinux: lima vm 2025-05-08 20:57:17 +09:00
lima-setup.sh fix: use correct fedora version number and deprecate riskv64 (#3497) 2026-04-17 06:08:27 +09:00
provision_system.sh selinux: lima vm 2025-05-08 20:57:17 +09:00
README.md Update basic_setup.md (#3253) 2025-10-13 17:31:45 +05:30

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 in Rust.

Requirements

  • Lima
  • QEMU
  • Rust and Cargo

Development Environment

Setup with Lima

# 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:

# 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:

# Remove the Lima VM
$ ./lima-setup.sh --cleanup