Repository navigation
Commit a24ac37
openvmm: pin the refusal of renames that move denied paths
OpenVMM's virtio-fs server checked only that the guest may modify the
two names of a rename, but a rename also moves everything below them,
and a microVM share's access policy can hide a path below a writable
one (microsoft#1601). Under --mount-deny logs/secret, a guest that
renamed logs, or exchanged it with another directory on a Linux host,
moved the hidden secret to a visible name, where it could list and
remove it, and open one that the host had recreated after attaching
the share. Once the host had removed such a directory, the guest could
also rename one of its own onto that name and so put its entries at the
denied path.
Pin microsoft/openvmm 49fc14eeb5971fc42043837fecd2c243b997ef54, one
commit on 21b1a55d0, the head of microsoft/openvmm#5222:
- virtiofs: refuse renames of directories that hold denied paths.
VirtioFs::rename requires that the guest may modify every path at
and below both of its names, as SubtreePolicy::is_subtree_writable
decides, and otherwise fails with EROFS before the host changes
anything. Its tests fail without the change on Windows and on Linux
(nvx-kvm-test).
No saved state, protocol, ABI, or format, and no version of any of
them, changes. The protocol vectors and CPU profiles that nvx copies
are unchanged.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 465d022 commit a24ac37
1 file changed
Lines changed: 1 addition & 1 deletion
0 commit comments