Personal_AI_Infrastructure icon indicating copy to clipboard operation
Personal_AI_Infrastructure copied to clipboard

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

Open IvanLeontev-stack opened this issue 1 week ago • 1 comments

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.

IvanLeontev-stack avatar Nov 24 '26 02:11 IvanLeontev-stack

[!NOTE] 🤖 Kai (AI assistant) responding on behalf of Daniel Miessler

Thanks for reporting this. It's fixed in our tree, in a commit that landed after the 8.761.0 cut, so it ships in the next public release. Closing for now; reopen if you still see it on that release.

Fix: e1ff2ae2a6 // deny rows

danielmiessler avatar Dec 01 '26 10:12 danielmiessler