Initial commit

Signed-off-by: Jarkko Sakkinen <jarkko.sakkinen@iki.fi>
47 files changed
tree: c46aabfd8850e45b2b1c8dddc86ea0556b817d49
  1. bpf/
  2. scripts/
  3. src/
  4. .clang-format
  5. .editorconfig
  6. .gitattributes
  7. .gitignore
  8. LICENSE
  9. Makefile
  10. README.md
README.md

ucells

Run Cells v3 programs on Linux.

Requires a kernel with CONFIG_RUNFD=y, NS_SET_IDMAP, and BPF LSM enabled at boot.

The Cells v3 syscall numbers are intercepted in the supervised program. In particular, slot 473 is cell_create there and runfd in the kernel.

Build and install

The build requires a C23 compiler, Clang with BPF support, bpftool, pkg-config, and libbpf 1.0 or later. Build on x86-64 or AArch64 with exported UAPI headers from the runfd kernel, not the SDK syscall tables:

make -C /path/to/linux headers_install INSTALL_HDR_PATH="$PWD/build/uapi"
make
sudo make install

If the headers are already exported elsewhere, set UAPI_DIR to their include directory when building or installing.

Usage

sudo ucells -- cat /proc/sys/user/max_cell_id_blocks

License

Licensed under GPL-2.0-only.