-
-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
incusd/device/disk: Allow relative paths within custom volumes
The general logic is pretty straightforward, we allow the `source` property to include both the volume name and then a relative path to that volume. The tricky part is to do this safely as the user will be in control of the volume and so can create dangerous symlinks in there, trying to trick us into reading data from the host. Carefuly use of Openat2 allows us to restrict resolution in a race-free way. Closes #993 Signed-off-by: Stéphane Graber <[email protected]>
- Loading branch information
Showing
1 changed file
with
76 additions
and
48 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