# 使用 Homebrew, apt, MacPorts 安装 jailkit

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

## 安装

```sh
sudo av install brew:jailkit
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install jailkit
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install jailkit
```

  证据: MacPorts ports tree: security/jailkit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install jailkit
```

  证据: Debian stable package indexes: jailkit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## 软件包事实

- **软件包键:** brew:jailkit
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/jailkit>
- **版本:** 2.23
- **来源摘要:** Utilities to create limited user accounts in a chroot jail
- **主页:** <https://olivier.sessink.nl/jailkit/>
- **上游文档:** <https://olivier.sessink.nl/jailkit/>
- **许可证:** BSD-3-Clause AND LGPL-2.0-or-later
- **源码归档:** <https://olivier.sessink.nl/jailkit/jailkit-2.23.tar.bz2>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- jk_check (cli)
- jk_chrootlaunch (cli)
- jk_chrootsh (cli)
- jk_cp (cli)
- jk_init (cli)
- jk_jailuser (cli)
- jk_list (cli)
- jk_lsh (cli)
- jk_socketd (cli)
- jk_uchroot (cli)
- jk_update (cli)
- jk_check (别名)
- jk_chrootlaunch (别名)
- jk_chrootsh (别名)
- jk_cp (别名)
- jk_init (别名)
- jk_jailuser (别名)
- jk_list (别名)
- jk_lsh (别名)
- jk_socketd (别名)
- jk_uchroot (别名)
- jk_update (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.23
- 本地数据: OK
- 上游仓库: https://olivier.sessink.nl/jailkit/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

Jailkit is a Unix security toolkit for creating and maintaining chroot jails for users, shells, and daemons. It is an older, conservative package whose value is automation around a risky primitive: `chroot`.

### 项目历史

The project page and man page credit Olivier Sessink and carry copyright years beginning in 2003. Jailkit was built to automate repeated chroot setup tasks, including copying binaries and libraries into a jail, limiting commands through a restricted shell, checking jail integrity, and forwarding logs from inside a jail.

The project has stayed intentionally narrow. The homepage emphasizes stable, security-focused behavior: utilities abort when configuration or environment checks are not secure, and syslog messages explain what failed. Maintenance releases in 2019 and 2021 focused on Python 3 compatibility, `jk_update`, `jk_init`, and man-page cleanup rather than broad feature expansion.

### 采用历史

The homepage states that Jailkit is used in network security appliances, large enterprise and ISP internet servers, smaller companies, and private deployments for securing CVS, SFTP, shell, and daemon processes. Homebrew API data available during this enrichment recorded 142 installs over 365 days, which matches a specialized system-administration tool with long tail usage.

### 使用方式

Administrators use Jailkit to initialize a jail, copy only the commands and libraries needed for a task, move users into the jail, restrict allowed commands through `jk_lsh`, and check common jail security mistakes with `jk_check`. The man page stresses that writable system directories, setuid programs, and root privileges inside a jail can defeat the intended isolation.

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

Jailkit matters to package nerds because it packages institutional Unix hardening lore into named commands: `jk_init`, `jk_cp`, `jk_chrootsh`, `jk_lsh`, `jk_jailuser`, `jk_check`, and friends. It is not glamorous, but it turns chroot from a hand-built directory-tree ritual into repeatable system administration.

### 时间线

- 2003: Project copyright and man-page history begin under Olivier Sessink.
- 2019: Jailkit 2.21 added full Python 3 compatibility and removed the long-deprecated `jk_addjailuser` utility.
- 2021: Jailkit 2.22 fixed Python 3 compatibility in `jk_update` and improved `jk_init.ini` defaults.
- 2021: Jailkit 2.23 fixed `jk_init` edge cases and cleaned up man-page locations.
- 2026: The project page documented non-exposure to CVE-2026-23268/CVE-2026-23269 because Jailkit exits when required system calls fail or are not permitted.

### Related projects

- Jailkit is related to the Unix `chroot(2)` facility, OpenSSH restricted SFTP setups, limited shells, rsync/scp/CVS jail deployments, and OS-level isolation mechanisms. Unlike containers, its focus is small, explicit filesystem jails for accounts and daemons.

### 来源

- <https://cvs.savannah.nongnu.org/viewvc/jailkit>
- <https://formulae.brew.sh/api/formula/jailkit.json>
- <https://olivier.sessink.nl/jailkit/>
- <https://olivier.sessink.nl/jailkit/jailkit.8.html>
- <https://savannah.nongnu.org/projects/jailkit>


## 安全说明

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: /etc/jailkit/, JAIL/etc/jailkit/
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** jailkit
- **Version Scheme:** 0
- **Revision:** 1
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - jailkit - 2.23-2+b1: normalized package name match | Debian stable package indexes: jailkit from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | tools to generate chroot jails easily | https://olivier.sessink.nl/jailkit/
- Ubuntu apt - jailkit - 2.23-2: normalized package name match | Ubuntu 24.04 LTS package indexes: jailkit from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | tools to generate chroot jails easily | https://olivier.sessink.nl/jailkit/
- MacPorts - jailkit: normalized package name match | MacPorts ports tree: security/jailkit/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched Homebrew package provider.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [john-jumbo](https://pkg.so/zh-hans/brew/john-jumbo/) - Shares pkgdb curated category or tags: cli, security, unix.
- [pwgen](https://pkg.so/zh-hans/brew/pwgen/) - Shares pkgdb curated category or tags: cli, security, unix.
- [john](https://pkg.so/zh-hans/brew/john/) - Shares pkgdb curated category or tags: cli, security, unix.
- [chkrootkit](https://pkg.so/zh-hans/brew/chkrootkit/) - Shares pkgdb curated category or tags: cli, security, unix.
- [duo_unix](https://pkg.so/zh-hans/brew/duo-unix/) - Shares pkgdb curated category or tags: cli, security, unix.
- [gnutls](https://pkg.so/zh-hans/brew/gnutls/) - Shares pkgdb curated category or tags: cli, security.
- [krb5](https://pkg.so/zh-hans/brew/krb5/) - Shares pkgdb curated category or tags: cli, security.
- [nettle](https://pkg.so/zh-hans/brew/nettle/) - Shares pkgdb curated category or tags: cli, security.
- [name-that-hash](https://pkg.so/zh-hans/brew/name-that-hash/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, security, system.
- [rush](https://pkg.so/zh-hans/brew/rush/) - Security-sensitive metadata or terminology overlaps. Shared terms: administration, cli, security, system, system-administration.
- [bandit](https://pkg.so/zh-hans/brew/bandit/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, python, python-3-14, security.

## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
