Correctly open mountinfo with sandbox=none
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)