[Virtio-fs] [virtiofsd-rs] MR opened: Correctly open mountinfo with sandbox=none

virtiofs-bot at sinrega.org virtiofs-bot at sinrega.org
Thu Dec 2 09:51:09 UTC 2021


We need to open `/proc/self/mountinfo` with `O_RDONLY`, because we want to read from it.  Instead, we open it with `O_PATH` (when using sandbox=none), though, which is wrong and will later prevent us from creating openable file handles.

Fix it.

(Reported by German)
---
https://gitlab.com/virtio-fs/virtiofsd-rs/-/merge_requests/52




More information about the Virtio-fs mailing list