[bug] settings.system.json system-folder Edit denies use a single leading slash,…

オープン 初心者向け
#2,941 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 4 日以内に返信

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
json
領域
tooling

調査の方向性

settings.system.json を開き、227-231 行目、System、bin、etc、sbin、usr に対する 5 つの Edit(...) 拒否エントリに移動します。Claude Code の権限ドキュメントの "How path patterns match" セクションと比較してください。そこでは、先頭のスラッシュが 1 つの場合は設定ソースでアンカーされ、先頭のスラッシュが 2 つの場合は絶対パスであると説明されています。各エントリを二重スラッシュ形式(例: Edit(//usr/**))に変更し、ファイルが引き続き有効な JSON であることを確認してください。5 つのルールすべてが絶対形式を使用していれば完了です。

索引モデルが issue の本文から書いたものです。

説明

What happened

the system-folder Edit denies in settings.system.json use a single leading slash, which Claude Code anchors at the config dir, so the real system folders are not covered

Summary

settings.system.json:227-231 (release 8.761.0, unchanged on main) has five Edit(...) denies for the system folders System, bin, etc, sbin and usr, each written with one leading slash. Claude Code's permission docs (code.claude.com/docs/en/permissions, "How path patterns match") say: "The single leading slash anchors at the settings source, not the filesystem root", and a double leading slash is the absolute form. For user settings the source is the Claude config dir, so these five rules guard folders of those names inside the config dir, not the system folders.

Harm is small today (writing to the real folders needs root), but the rules read as a system-folder guard and do not act as one.

Suggested fix: write each of the five with a double leading slash, e.g. Edit(//usr/**).

Details

  • Kind: bug
  • LifeOS version: 8.761.0

Filed with the LifeOS /feedback command. The reporter approved this exact text before it was sent; paths, secrets and personal details were stripped locally.

主要言語
TypeScript
スター
19.9k
フォーク
2.5k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

danielmiessler/LifeOS のほかの issue

danielmiessler/LifeOS の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。