]> xenbits.xensource.com Git - libvirt.git/commitdiff
docs: virtiofs: add section about ID remapping
authorJán Tomko <jtomko@redhat.com>
Mon, 11 Sep 2023 13:38:10 +0000 (15:38 +0200)
committerJán Tomko <jtomko@redhat.com>
Thu, 14 Dec 2023 16:10:22 +0000 (17:10 +0100)
Signed-off-by: Ján Tomko <jtomko@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/kbase/virtiofs.rst

index 5940092db585bc171fd0a87b3dbb4af621e56cdc..457c15da7f46c0f23a6237b23274ccbcda02debb 100644 (file)
@@ -59,6 +59,25 @@ Sharing a host directory with a guest
 
    Note: this requires virtiofs support in the guest kernel (Linux v5.4 or later)
 
+Running unprivileged
+====================
+
+In unprivileged mode (``qemu:///session``), mapping user/group IDs is available
+(since libvirt version 10.0.0). The root user (ID 0) in the guest will be mapped
+to the current user on the host.
+
+The rest of the IDs will be mapped to the subordinate user IDs specified
+in `/etc/subuid`:
+
+::
+
+  $ cat /etc/subuid
+  jtomko:100000:65536
+  $ cat /etc/subgid
+  jtomko:100000:65536
+
+To manually tweak the user ID mapping, the `idmap` element can be used.
+
 Optional parameters
 ===================