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

Quick fixes for getting amdci1 up and running #109

Merged
merged 5 commits into from
Mar 28, 2023
Merged

Conversation

staticfloat
Copy link
Collaborator

No description provided.

After mounting the overlay in our `overlay_probe` executable, attempt to
`rename()` a directory.  This should fail with `EXDEV` if our upper does
not allow setting the appropriate extended attributes, as documented
here [0].  The solution is to try without `userxattr` applied, as well
as trying different mount points.

[0] https://docs.kernel.org/filesystems/overlayfs.html#renaming-directories
We started using `realpath()` to collapse down symlinks so that if our
mappings were actually on a different underlying mountpoint than they
initially appeared, we could warn the user at `SandboxConfig`
construction time.  Now let's just resolve what we can, and rely on the
user to not do something silly like create a symlink to someplace else
_after_ we've already constructed the `SandboxConfig` object.
Everyone should always use `with_executor()` so that `cleanup(exe)` is
automatically called for you!
This is necessary to properly test unprivileged user namspaces on
buildkite.  It also allows us to drop the installation of GCC!
@codecov
Copy link

codecov bot commented Mar 28, 2023

Codecov Report

Patch coverage: 83.33% and project coverage change: +0.07 🎉

Comparison is base (7854d6b) 78.70% compared to head (b29dfc0) 78.78%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #109      +/-   ##
==========================================
+ Coverage   78.70%   78.78%   +0.07%     
==========================================
  Files           6        6              
  Lines         620      627       +7     
==========================================
+ Hits          488      494       +6     
- Misses        132      133       +1     
Impacted Files Coverage Δ
src/utils.jl 67.91% <80.00%> (+0.98%) ⬆️
src/SandboxConfig.jl 93.10% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@staticfloat staticfloat merged commit e730da3 into main Mar 28, 2023
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.

1 participant