Story Details

  • Landrun: Sandbox any Linux process using Landlock, no root or containers

    Posted: 2025-03-22 13:56:59

    Landrun is a tool that utilizes the Landlock Linux Security Module (LSM) to sandbox processes without requiring root privileges or containers. It allows users to define fine-grained access control rules for a target process, restricting its access to the filesystem, network, and other resources. By leveraging Landlock's unprivileged mode and a clever bootstrapping process involving temporary filesystems, Landrun simplifies sandbox setup and makes robust sandboxing accessible to regular users. This enables easier and more secure execution of potentially untrusted code, contributing to a more secure desktop environment.

    Summary of Comments ( 122 )
    https://news.ycombinator.com/item?id=43445662

    HN commenters generally praise Landrun for its innovative approach to sandboxing, making it easier than traditional methods like containers or VMs. Several highlight the significance of using Landlock LSM for security, noting its kernel-level enforcement as a robust mechanism. Some discuss potential use cases, including sandboxing web browsers and other potentially risky applications. A few express concerns about complexity and debugging challenges, while others point out the project's early stage and potential for improvement. The user-friendliness compared to other sandboxing techniques is a recurring theme, with commenters appreciating the streamlined process. Some also discuss potential integrations and extensions, such as combining Landrun with Firejail.