-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow hard link rendering to external directories
It's not clear that supporting this was ever intended, but it was possible to run spfs-render and ask it to hard link into an external directory. The various other internal calls had `RenderType::Copy` hard coded. Using hard links into an external directory exposes the spfs repository to unintentional corruption since it allows those files to be edited and consequently modify payloads that are meant to be immutable. The change was prompted by wanting to refactor the code to work towards having different trait bounds for the functions that need a repository that supports renders (e.g., rendering into a repository) versus functions that render into a plain directory. Signed-off-by: J Robert Ray <[email protected]>
- Loading branch information
Showing
7 changed files
with
424 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.