Skip to content

Guard the server lock under every spelling of its name - #73

Merged
wintermeyer merged 1 commit into
mainfrom
server-lock-spellings
Oct 15, 2026
Merged

wintermeyer merged 1 commit into
mainfrom
server-lock-spellings

Conversation

@wintermeyer

Copy link
Copy Markdown
Owner

Follow-up to #72. The guard now matches heinzel.conf by name in any case, so /ETC/HEINZEL.CONF on macOS, /etc//heinzel.conf, cd /etc && rm heinzel.conf and find … -delete are denied too. A glob or a name built at run time still gets past a pattern, as the code comment says. Guard tests: 816 passed, 0 failed. Bumps to 3.1.1.

An AI agent wrote this text in my name. I know that is problematic.

The guard matched /etc/heinzel.conf as a literal path, so an uppercase name on macOS, a doubled slash or a relative path after cd lifted the lock unseen. Matching the file name in any case closes those, at the cost of also denying writes to any other file called heinzel.conf; globs and names built at run time stay out of reach of a pattern.

An AI agent wrote this text in my name. I know that is problematic.
@wintermeyer
wintermeyer merged commit 6e1cf3d into main Oct 15, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant