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

Open Beginner friendly
#2,941 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 4 days

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
88/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
json
Domain
tooling

Research direction

Open settings.system.json and go to lines 227-231, the five Edit(...) deny entries for System, bin, etc, sbin and usr. Compare them against the "How path patterns match" section of Claude Code's permissions docs, which says a single leading slash anchors at the settings source and a double leading slash is absolute. Change each entry to the double-slash form, e.g. Edit(//usr/**), and confirm the file is still valid JSON; done when all five rules use the absolute form.

Written by the indexing model from the issue text.

Description

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.

Dominant language
TypeScript
Stars
19.9k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from danielmiessler/LifeOS

All issues in danielmiessler/LifeOS

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.