winliyou/dsh-plugins--packages-sandbox-extra-roots0

@chaoset/sandbox-extra-roots

DSH host plugin: extra writable roots for the workspace-write sandbox (Seatbelt/bwrap/Landlock profiles and the fs fence)

AI 分析

核心用途是扩展沙盒的写入权限。适合在使用沙盒安全机制时,需要允许工具写入特定外部缓存或数据目录的用户。

パッケージ
@chaoset/sandbox-extra-roots
バージョン
0.2.3
ライセンス
MIT
最終更新
2026/08/17

インストール

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:winliyou/dsh-plugins#c4f3ebb6f33963c89385cecc3318105249464713&path:packages/sandbox-extra-roots

ドキュメント

README 全文を読む ↗

配置

生效顺序(后者覆盖前者):

  1. 插件内置默认(空列表)
  2. bundle patch 中 cordis.patch.yml 的 config
  3. 用户 profile/home 的 cordis.patch.yml 覆盖
  4. DSH 设置页 → 插件配置 → 沙盒额外允许目录(保存到 $DSH_HOME/plugins/sandbox-extra-roots/config.json,立即热生效)

extraWritableRoots:绝对路径数组(设置页里每行一个)。相对路径/空值会被拒绝并告警。

安全提示:这些目录可获得"写"权限(读本就不受限),请只保留确需写入的工具缓存; 含明文凭证的目录(如 ~/.docker~/.dotnet~/.gradle)谨慎列入。