Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Linux sandbox: ignore ENODEV when making the filesystem read-only.
The code remounting existing mounts as read-only already ignores various errors, such as `EINVAL`, `ESTALE` etc. Unfortunately, it doesn't ignore `ENODEV`, which can occur in case of `autofs`/`automount` failure. Currently, having a single broken automount on the host can cause all sandboxes to fail with the following error: ``` src/main/tools/linux-sandbox-pid1.cc:281: "remount(nullptr, /data/foo, nullptr, 2101281, nullptr)": No such device ``` So simply also add `ENODEV` to the list of errors ignored. Closes #16172. PiperOrigin-RevId: 470953318 Change-Id: Ib737d94051fe7507a5e1f6fa01f367690429c47a
- Loading branch information