[bug] settings.system.json: single-slash permission rules miss system dirs
Maintainers usually reply within 5 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 78/100
- Issue type
- Bug
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- tooling
Research direction
Find where settings.system.json defines the eight permission rules and check how system settings and install overlays are assembled. Read the settings check or lint entry point mentioned in the codebase, if present. Update the rules to use the double leading slash and ensure overlays with their own non-empty deny array receive the same correction; done when all eight rules target the filesystem paths described and the single-slash regression is caught.
Written by the indexing model from the issue text.
Description
What happened
settings.system.json writes its system-directory permission rules with one leading slash, so Claude Code resolves them under the settings root and they do not protect the system directories they name. On a case-insensitive volume the bin rule blocks edits to the install's own Bin folder instead.
Summary
What happens
settings.system.json writes eight permission path rules with one leading slash. Claude Code reads a single leading slash as relative to the settings root, and a double slash as the filesystem root. So these rules point inside the install, not at the system.
Deny rules affected (rule text shown without its leading slash, so a path scrubber leaves it readable): Edit(System/**), Edit(bin/**), Edit(etc/**), Edit(sbin/**), Edit(usr/**).
Allow rules affected, same notation: Edit(private/tmp/**), Edit(tmp/**), Edit(var/folders/**).
Effect
- The five deny rules give no protection to the system directories.
- On a case-insensitive volume, the macOS default, the
binrule matches the install's ownBinfolder. The assistant is refused when it edits a script there: "File is in a directory that is denied by your permission settings". - The three allow rules grant edits under same-named folders inside the install, not the temp directories.
How I confirmed it (8.761.0, macOS)
- An Edit of a script in the install's
Binfolder was refused with the message above. - I changed the
binrule to the double-slash form. The same Edit then succeeded. - I moved the other deny rules to the double-slash form and probed each with an Edit against a file that does not exist. The system
usr,bin,sbin,Systemandetcdirectories each refused with the deny message. A control inside the install'sBinfolder returned "File does not exist", so it was no longer blocked.
Suggested fix
Write all eight rules with the double leading slash. A lint in the settings check that rejects any Edit(, Read( or Write( rule starting with exactly one slash would stop it coming back.
One note for whoever picks this up: an install whose overlay carries its own non-empty deny array replaces the system list, so that overlay needs the same correction.
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
- 20.7k
- Forks
- 2.6k
- 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
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from danielmiessler/LifeOS
-
Interceptor LaunchTestProfile.sh: no Windows (Git Bash/MSYS) branch, test profile never launchesOpen
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
danielmiessler/LifeOS#3150 ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
danielmiessler/LifeOS#3135 · 1 comment ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
danielmiessler/LifeOS#3038 · 1 comment ·
Maintainers usually reply within 5 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
danielmiessler/LifeOS#2977 · 1 comment ·
Maintainers usually reply within 5 days
-
Accepting a proposal in Pulse returns ok, but CENSVS refuses the move and the two records stay apartOpen
Difficulty 4/5 3-5 days Newbie friendliness 55/100
danielmiessler/LifeOS#3149 · 2 comments ·
Maintainers usually reply within 5 days
All issues in danielmiessler/LifeOS
Similar issues
-
Media browser returns "Not found" for repositories using the SHA-256 object formatPossibly taken @adamchodera claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Follow-ups from #312Open
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
janhesters/remixcn#318 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Maintainers usually reply within 1 day
-
Make the "%" unit spacing the same in the web and in A10Possibly taken @kragent66-glitch claimed this today. Openbug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
maiychrus25/OpenTea-DX-OS#226 · 1 comment ·
-
NP OSS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
siteboon/claudecodeui#1905 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day