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.


Related Software

Application Sandboxing Tools
FirejailLinux SUID sandbox for restricting application access
bubblewrapLow-level tool for building unprivileged sandboxes
NsJailProcess isolation tool using namespaces, cgroups, and seccomp filters
IsolateSecure execution environment for running untrusted programs with limits
SydApplication sandbox providing configurable filesystem and syscall isolation
HakoniwaProcess isolation tool built around Linux namespaces and security facilities

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted