Skip to content

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Repository files navigation

RLBox LFI Sandbox Integration

Integration with RLBox sandboxing API to leverage the sandboxing from the LFI compiler described in Lightweight Fault Isolation: Practical, Efficient, and Secure Software Sandboxing

For details about the RLBox sandboxing APIs, see here.

Building/Running the tests

This integration currently only supports Linux on x86-64 and aarch64 targets.

You can build and run the tests using cmake with the following commands.

cmake -S . -B ./build
cmake --build ./build --parallel
cmake --build ./build --target test

If you want to cross-compile aarch64 binaries on an x86-64 host, you can do this through

cmake -S . -B ./build --parallel -DCMAKE_TOOLCHAIN_FILE=TC-aarch64.cmake

The test binaries can run through qemu with the command

qemu-aarch64 -L /usr/aarch64-linux-gnu/ ./build/test_rlbox_glue

Contributing Code

  1. To contribute code, it is recommended you install clang-tidy which the build uses if available. Install using:

    On Ubuntu:

    sudo apt install clang-tidy

    On Arch Linux:

    sudo pacman -S clang-tidy
  2. It is recommended you use the dev mode for building during development. This treat warnings as errors, enables clang-tidy checks, runs address sanitizer etc. Also, you probably want to use the debug build. To do this, adjust your build settings as shown below

    cmake -DCMAKE_BUILD_TYPE=Debug -DDEV=ON -S . -B ./build
  3. After making changes to the source, add any new required tests and run all tests as described earlier.

  4. To make sure all code/docs are formatted with, we use clang-format. Install using:

    On Ubuntu:

    sudo apt install clang-format

    On Arch Linux:

    sudo pacman -S clang-format
  5. Format code with the format-source target:

    cmake --build ./build --target format-source
  6. Submit the pull request.

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

2 watching

Forks

Releases

Packages

Contributors

Languages