Skip to content

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

Open
acts-1631 wants to merge 1 commit into
upa:mainfrom
acts-1631:fix/checkpoint-file-permissions
Open

checkpoint: create checkpoint file with 0600 instead of 0644#44
acts-1631 wants to merge 1 commit into
upa:mainfrom
acts-1631:fix/checkpoint-file-permissions

Conversation

@acts-1631

Copy link
Copy Markdown

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.
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