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

Revert "libct/validator: Error out on non-abs paths" #3971

Merged
merged 2 commits into from
Aug 9, 2023

Conversation

rata
Copy link
Member

@rata rata commented Aug 7, 2023

As discussed here it seems safer, at least for now, to revert the error and continue to throw a warning.


This reverts commit 881e92a and adjust the code so the idmap validations are strict.

Fixes: #3944
Updates: #3020 (There is no way to re-open it automatically, can someone re-open it?)

@rata rata force-pushed the rata/abs-dest-path-warn branch 2 times, most recently from 0c196d0 to d814374 Compare August 8, 2023 10:28
@rata rata marked this pull request as ready for review August 8, 2023 10:30
This reverts commit 881e92a and adjust
the code so the idmap validations are strict.

We now only throw a warning and the container is started just fine.

Signed-off-by: Rodrigo Campos <[email protected]>
The idea was to make them strict on dest path from the beginning for
idmap mounts, as runc would do that for all mounts in the future. But
that is causing too many problems.

For now, let's just allow relative paths for idmap mounts too. It just
seems safer.

Signed-off-by: Rodrigo Campos <[email protected]>
@rata
Copy link
Member Author

rata commented Aug 8, 2023

cc @thaJeztah

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lifubang lifubang merged commit 33ce0dc into opencontainers:main Aug 9, 2023
36 checks passed
@rata rata deleted the rata/abs-dest-path-warn branch September 8, 2023 17:12
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.

Consider throwing a warning on not absolute mounts destination paths
4 participants