Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(uhyvefilemap): improve guest path handling #844

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

n0toose
Copy link
Member

@n0toose n0toose commented Dec 17, 2024

Until now, guest paths were not canonicalized.

This would mean that Uhyve would not be able to see that, for example, "/root" and "/root/directory/.." are both locations referring to the same directory. This requires a new dependency for now, although we should remove it once Path::normalize_lexically is implemented and part of Rust.

This also "removes" support for empty, mapped guest paths.

Fixes #815.

@n0toose n0toose requested a review from jounathaen December 17, 2024 23:52
@n0toose n0toose force-pushed the sandbox-guest-paths branch from 785afa1 to f661d85 Compare December 17, 2024 23:53
Until now, guest paths were not canonicalized.

This would mean that Uhyve would not be able to see that, for example,
"/root" and "/root/directory/.." are both locations referring to the
same directory. This requires a new dependency for now, although we
should remove it once Path::normalize_lexically is implemented and
part of Rust.

This also "removes" support for empty, mapped guest paths.

Fixes hermit-os#815.
@n0toose n0toose force-pushed the sandbox-guest-paths branch from f661d85 to c9cd2eb Compare December 17, 2024 23:56
Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 71.85%. Comparing base (537e7cc) to head (c9cd2eb).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #844   +/-   ##
=======================================
  Coverage   71.85%   71.85%           
=======================================
  Files          23       23           
  Lines        3063     3063           
=======================================
  Hits         2201     2201           
  Misses        862      862           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

UhyveFileMap: Canonicalize guest paths
1 participant