forked from containers/composefs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Historically we accept any arbitrary data in the dumpfile for the file size for symlink, and end up ignoring it ultimately when we write the EROFS. However previously it was pretty confusing as the in-memory node data could have a bogus size. Add an API and use it both in the mkcomposefs path *and* in the "reread from EROFS path" to perform more consistent validation for symlink targets. This just wraps the previous `lcfs_node_set_payload()` API, inheriting its checks for length. Signed-off-by: Colin Walters <[email protected]>
- Loading branch information
Showing
4 changed files
with
40 additions
and
8 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