# 使用 Homebrew, Nix 安装 landrun

查看 landrun 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:landrun
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install landrun
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#landrun
```

  证据: nixpkgs package indexes: pkgs/by-name/la/landrun/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:landrun
- **软件包管理器:** Homebrew
- **版本:** 0.1.17
- **来源摘要:** Lightweight, secure sandbox for running Linux processes using Landlock LSM
- **主页:** <https://github.com/Zouuup/landrun>
- **仓库:** <https://github.com/Zouuup/landrun>
- **最后更新:** 2026-07-26T13:40:58+02:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- landrun (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.1.17
## 项目历史与用法

Landrun is a small Linux command-line sandbox that wraps the kernel Landlock security module so ordinary users can run a process with explicit filesystem and TCP access rules.

### 项目历史

The project appeared publicly in March 2025 with early 0.1.x releases. Its README frames it as a practical front end for Landlock: no root, no containers, no SELinux or AppArmor policy files, and a command-line flag model for read, write, execute, bind, and connect permissions.

The early release stream quickly refined the access model. Version 0.1.3, released on 2025-03-22, added a deny-all behavior when no sandbox rules are provided. Version 0.1.4, released on 2025-03-23, replaced a global execution flag with path-specific execution permissions. Version 0.1.10, released on 2025-03-23, expanded Landlock permission coverage and tests, and version 0.1.14, released on 2025-04-03, added helper flags for dynamically linked executables.

### 采用历史

Landrun's adoption signal is mainly package-nerd and security-tool visibility rather than a long institutional history. The upstream README lists distro packaging for Arch AUR and SlackBuilds, and the Homebrew formula places it in the macOS/Linux package-manager ecosystem even though the underlying sandbox requires Linux Landlock support.

### 使用方式

Typical usage is to prefix another command with `landrun` and add only the paths and TCP ports that process should access. The README also documents a systemd integration pattern for wrapping services such as nginx with reduced filesystem and network permissions.

### 为什么软件包爱好者会关心

For package collectors, Landrun is notable because it turns a relatively obscure kernel LSM into a normal CLI tool. It sits near tools such as firejail and bubblewrap, but its hook is using unprivileged, kernel-native Landlock rules with a small Go implementation.

### 时间线

- 2025-03-22: v0.1.3 release documented deny-all behavior when no sandbox rules are supplied.
- 2025-03-23: v0.1.4 release introduced path-specific execution permissions.
- 2025-03-23: v0.1.10 release expanded Landlock permission coverage and test coverage.
- 2025-04-03: v0.1.14 release added `--ldd` and `--add-exec` helper flags.

### Related projects

- Related projects include the Linux Landlock LSM, the go-landlock bindings used by Landrun, and user-facing Linux sandbox tools such as firejail and bubblewrap.

### 来源

- <https://github.com/Zouuup/landrun>
- <https://github.com/Zouuup/landrun/releases>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 其他软件包管理器记录

- Nix - landrun: normalized package name match | nixpkgs package indexes: pkgs/by-name/la/landrun/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/landrun.yml](https://github.com/mxcl/pkgdb/blob/main/combined/landrun.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
