Create the archive readable by its owner only #5

Merged
jcoffey-dev merged 1 commits from fix/archive-permissions into main 2026-09-30 18:29:04 +00:00
Owner

An archive holds a whole mailbox, its contacts and calendars, and it was
created with SQLite's default mode, readable by every user on the machine.
On Unix a new archive is now created with mode 0600 before SQLite opens it;
SQLite gives the -wal and -shm files the database file's mode, so they
follow, which a test confirms. An existing archive that others can read is
left as it is, with a warning naming it and the chmod that fixes it.
Nothing changes on Windows.

An archive holds a whole mailbox, its contacts and calendars, and it was created with SQLite's default mode, readable by every user on the machine. On Unix a new archive is now created with mode 0600 before SQLite opens it; SQLite gives the -wal and -shm files the database file's mode, so they follow, which a test confirms. An existing archive that others can read is left as it is, with a warning naming it and the chmod that fixes it. Nothing changes on Windows.
jcoffey-dev added 1 commit 2026-09-30 18:26:21 +00:00
Create the archive readable by its owner only
ci / test (pull_request) Skipped
github/ci (branch) GitHub Actions
ci / github (pull_request) Successful in 2m32s
ci / announce (pull_request) Skipped
38d32811e4
An archive holds a whole mailbox, its contacts and calendars, and it was
created with SQLite's default mode, readable by every user on the machine.
On Unix a new archive is now created with mode 0600 before SQLite opens it;
SQLite gives the -wal and -shm files the database file's mode, so they
follow, which a test confirms. An existing archive that others can read is
left as it is, with a warning naming it and the chmod that fixes it.
Nothing changes on Windows.
jcoffey-dev merged commit 15b1cbd637 into main 2026-09-30 18:29:04 +00:00
jcoffey-dev deleted branch fix/archive-permissions 2026-09-30 18:29:04 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: inbuxa/inbuxa-migrate#5