diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-03-01 17:35:05 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2017-03-01 11:35:05 -0500 |
commit | 059c35f507b3efecf1b7d77e62427766f7a25b1a (patch) | |
tree | a02ffb2509bb20b610968139a0cc657e4ff48d9f /src/basic/btrfs-ctree.h | |
parent | a2b53448e43694bcca7d6541f8acd83d479ca4f3 (diff) |
mount-util: accept that name_to_handle_at() might fail with EPERM (#5499)
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.
Note 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 permit
name_to_handle_at() there, only block open_by_handle_at(), which should
be sufficiently safe).
Diffstat (limited to 'src/basic/btrfs-ctree.h')
0 files changed, 0 insertions, 0 deletions