Hakoniwa – process isolation using Linux security facilities

Hakoniwa is a process isolation framework for creating restricted Linux execution environments.

It combines namespaces with several complementary resource and security mechanisms rather than treating filesystem separation alone as sufficient isolation. Hakoniwa creates a fresh mount namespace with a temporary root and assembles the environment needed by the confined process. It can be used from its command-line interface or embedded through its Rust library, which makes the project suitable both for interactive application sandboxing and for software that needs to launch restricted child processes programmatically.

This is free and open source software.

Key Features

  • Uses Linux namespaces to isolate processes and their view of system resources.
  • Creates a separate root filesystem with a mount namespace and pivot_root.
  • Can provide an isolated user-mode network stack using a network namespace and pasta.
  • Applies setrlimit controls to restrict resources available to a process.
  • Uses cgroup v2 through systemd for additional resource management.
  • Integrates Landlock to restrict ambient filesystem access rights.
  • Supports seccomp filters for limiting available system calls.
  • Can mount minimal device filesystems and temporary filesystems inside a sandbox.
  • Provides configurable bind mounts for exposing selected host resources.
  • Includes profiles aimed at desktop applications and common operating-system resources.
  • Supports sandboxing graphical applications as well as command-line programs.
  • Offers a Rust library for constructing namespaces, mounts, resource restrictions, Landlock rules and seccomp policies directly from applications.

Website: github.com/souk4711/hakoniwa
Support:
Developer: souk4711
License: GNU General Public License v3.0

Hakoniwa is written in Rust. Learn Rust with our recommended free books and free tutorials.


Best Free and Open Source Software Explore our carefully curated directory of recommended free and open source software, covering every major software category.

The directory forms part of our extensive collection of articles for Linux enthusiasts. It includes hundreds of detailed reviews, together with free and open source alternatives to proprietary software from companies such as Google, Microsoft, Apple, Adobe, IBM, Cisco, Oracle, and Autodesk.

LinuxLinks also covers interesting projects worth exploring, Linux-compatible hardware, free programming books and tutorials, and much more.

Know a useful free and open source Linux application that we haven’t covered? Tell us about it using our submission form.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted