You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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]>
0 commit comments