Browse Source
Directories attached using virtfs with security-model=mapped may contain native symlinks This can happen e.g. when booting from a rootfs directory tree (usually with a writable overlay set up on the host side) Currently, when security-model=mapped[-xattr|-file], QEMU assumes that host-side "symlinks" are in the mapped format, i.e. are regular files storing the linked path, so it tries to open with O_NOFOLLOW and fails with ELOOP on native symlinks This patch introduces a fallback for such cases: reuse security-model=[none|passthrough] else if branch logic where readlink will be called for the path basename Resolves: https://gitlab.com/qemu-project/qemu/-/issues/173 Signed-off-by: Andrey Erokhin <language.lawyer@gmail.com> Reviewed-by: Greg Kurz <groug@kaod.org> Link: https://lore.kernel.org/qemu-devel/3c35955d-a57e-4203-81c5-395146e23f83@gmail.com Signed-off-by: Christian Schoenebeck <qemu_oss@crudebyte.com>pull/319/head
committed by
Christian Schoenebeck
1 changed files with 4 additions and 0 deletions
Loading…
Reference in new issue