Skip to content
This repository was archived by the owner on Oct 9, 2026. It is now read-only.

Fix FTP access to launch age configuration - #2

Merged
Portablelle merged 1 commit into
mainfrom
codex/fix-launch-config-permissions
Oct 9, 2026
Merged

Portablelle merged 1 commit into
mainfrom
codex/fix-launch-config-permissions

Conversation

@Portablelle

Copy link
Copy Markdown
Owner

The app created /data/opennow with mode 0700, preventing FTP processes running as another user from uploading the required launch-age configuration.

Create /data/opennow/config for FTP uploads and repair directory permissions on startup, including existing installations. Keep the parent directory writable only by its owner so saved account files cannot be planted or replaced by other users. Read the age from config/launch-age.txt, retaining the original path as a fallback only when the new file is absent. Reject symlinks and use bounded, nonblocking reads so malformed files and FIFOs do not hang the worker. Update installation instructions.

Validation: bash tools/test-port.sh passed. After the security revisions, the ASan/UBSan persistence test passed again, covering directory migration, restrictive umasks, preserved login contents and permissions, legacy fallback, invalid ages, symlinks and FIFOs. PS5/FTP validation and a native build remain pending; this PR does not publish a console package.

Fixes #1.

@Portablelle
Portablelle merged commit ac1b3b4 into main Oct 9, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Can't Set age in the private launch configuration.

1 participant