On 12/13/23 15:47, Ján Tomko wrote:
Now with automatic id mapping selection.
Ján Tomko (9):
conf: move idmap definition earlier
conf: move idmap parsing earlier
conf: add idmap element to filesystem
qemu: format uid/gid map for virtiofs
qemu: virtiofs: do not force UID 0
qemu: allow running virtiofsd in session mode
util: add virGetSubUIDs
qemu: virtiofs: auto-fill idmap for unprivileged use
docs: virtiofs: add section about ID remapping
docs/formatdomain.rst | 8 +
docs/kbase/virtiofs.rst | 19 +++
src/conf/domain_conf.c | 152 ++++++++++++------
src/conf/domain_conf.h | 29 ++--
src/conf/schemas/domaincommon.rng | 3 +
src/libvirt_private.syms | 2 +
src/qemu/qemu_validate.c | 7 +-
src/qemu/qemu_virtiofs.c | 95 ++++++++++-
src/util/virutil.c | 70 ++++++++
src/util/virutil.h | 12 ++
.../vhost-user-fs-fd-memory.xml | 4 +
tests/utiltest.c | 33 ++++
tests/virutiltestdata/subuid | 4 +
13 files changed, 362 insertions(+), 76 deletions(-)
create mode 100644 tests/virutiltestdata/subuid
To patches 1-4,6-9:
Reviewed-by: Michal Privoznik <mprivozn(a)redhat.com>
Patch 5/9 breaks our support of virtiofsd written in C and as such can't
be merged (see more details in my reply to it).
Michal