Skip to content

checkpoint: create checkpoint file with 0600 instead of 0644 - #44

Merged
upa merged 1 commit into
upa:devfrom
acts-1631:fix/checkpoint-file-permissions
Jul 28, 2026
Merged

checkpoint: create checkpoint file with 0600 instead of 0644#44
upa merged 1 commit into
upa:devfrom
acts-1631:fix/checkpoint-file-permissions

Conversation

@acts-1631

Copy link
Copy Markdown
Contributor

checkpoint_save() opens the checkpoint file with group and other read permissions (0644). The checkpoint file stores the source and destination paths of files being transferred, so on a shared system other local users can read it and learn what files someone is copying. There's no reason for anyone but the owner to read this file, so restrict it to 0600.

checkpoint_save() opened the checkpoint file with group and other
read permissions. The checkpoint file contains the source and
destination paths of files being transferred, which can leak
information to other local users on shared systems. Restrict the
mode to owner read/write only, since the file only needs to be
read back by the same user during a -R resume.
@upa
upa changed the base branch from main to dev July 28, 2026 06:19
@upa
upa merged commit b682187 into upa:dev Jul 28, 2026
10 of 13 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.

2 participants