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

mount-util: accept that name_to_handle_at() might fail with EPERM #5499

Merged
merged 1 commit into from Mar 1, 2017

Conversation

poettering
Copy link
Member

Container managers frequently block name_to_handle_at(), returning
EACCES or EPERM when this is issued. Accept that, and simply fall back
to to fdinfo-based checks.

Notet that we accept either EACCES or EPERM here, as container managers
can choose the error code and aren't very good on agreeing on just one.

(note that this is a non-issue with nspawn, as we prmit
name_to_handle_at() there, only block open_by_handle_at(), which should
be sufficiently safe).

Container managers frequently block name_to_handle_at(), returning
EACCES or EPERM when this is issued. Accept that, and simply fall back
to to fdinfo-based checks.

Notet that we accept either EACCES or EPERM here, as container managers
can choose the error code and aren't very good on agreeing on just one.

(note that this is a non-issue with nspawn, as we prmit
name_to_handle_at() there, only block open_by_handle_at(), which should
be sufficiently safe).
@rhatdan
Copy link
Contributor

rhatdan commented Mar 1, 2017

This fixed the issue we are seeing with docker/runc in Rawhide.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

None yet

3 participants