]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: virtiofs: auto-fill idmap for unprivileged use
authorJán Tomko <jtomko@redhat.com>
Wed, 13 Dec 2023 13:05:32 +0000 (14:05 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 14 Dec 2023 16:10:22 +0000 (17:10 +0100)
commit1a4412f56894b6a514ddca19d478fb157d867315
tree6e6f41d1ede2769a21a0528a3725dea3a598f9a0
parent2ef4be0a3ea65d91b5b44cdf3b067f992d1c96be
qemu: virtiofs: auto-fill idmap for unprivileged use

If the user did not specify any uid mapping, map its own
user ID to ID 0 inside the container and the rest of the IDs
to the first found user's authorized range in /etc/sub[ug]id

https://issues.redhat.com/browse/RHEL-7386
https://gitlab.com/libvirt/libvirt/-/issues/535

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_virtiofs.c