From nobody Mon Sep 16 20:07:30 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1694440389; cv=none; d=zohomail.com; s=zohoarc; b=V93HtRGvuGkdOR0xE8gaggD0I8he91HqNRndqmMg174N4h6UwvGWO7n8GGU6ZOS+NQ/UXQYPuzOiqN/IgiNb9LK+b8YW059DQ4xYa0W//NB1d6lqbKAaSRVDlw9zzOPRsoFNv/T7H/9aMCdkx6mI2c10YcDOxd4ciE627z5eI50= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694440389; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=krp47eWzE4WHj/zQSRvIRCRMYkZE4Qe2NJLntOl90ps=; b=SxWx5qHXJ/mh6SZTJgZK7X6TIbsikdEarF5u+eov7BCFqLJ+sqha+Seqe1ZhAugWZnwJL2U+PXsQ67gvmI0Cy+rtbHyeIzD88ksPi90PqxLe56/dQjJOw3hEv6oN9q58U3L6TxZhx/hnV64+5Kq/jAntQdwA7jAr4Nrf6p/TOso= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mx.zohomail.com with SMTPS id 1694440389510409.01491113042766; Mon, 11 Sep 2023 06:53:09 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-410-LW6mJEULMo2fa5cY77NRyA-1; Mon, 11 Sep 2023 09:52:59 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9FEC23820EF4; Mon, 11 Sep 2023 13:52:43 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 89FAC4407D; Mon, 11 Sep 2023 13:52:43 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (localhost [IPv6:::1]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id C82B71946A6A; Mon, 11 Sep 2023 13:52:34 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 505F119465B8 for ; Mon, 11 Sep 2023 13:52:33 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 326FA10005D2; Mon, 11 Sep 2023 13:52:33 +0000 (UTC) Received: from fedora.. (unknown [10.43.2.118]) by smtp.corp.redhat.com (Postfix) with ESMTP id CE1851006B5C for ; Mon, 11 Sep 2023 13:52:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1694440388; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=krp47eWzE4WHj/zQSRvIRCRMYkZE4Qe2NJLntOl90ps=; b=S4HiCKVbiWYWarLz0dHAqqdKs1+gGTvq8e/ycxEw0wZjuhhHfk5xwGOknI3lZ03VXZyGX6 TIdUlpymDT/G7e6eZlhO+/CIUaN8e1f7Y/DDIAUqzZlUD2uUwZVdPTYAyd0/hZ3FMsAOVp ENvxELs1PL2RMn0kNXXDOV6sLoOdZuU= X-MC-Unique: LW6mJEULMo2fa5cY77NRyA-1 X-Original-To: libvir-list@listman.corp.redhat.com From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCHv1 8/8] docs: virtiofs: add section about ID remapping Date: Mon, 11 Sep 2023 15:51:28 +0200 Message-ID: <8fb68f05d63ea8c32c731971c8c315c8764d7ccf.1694440288.git.jtomko@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.3 X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: libvir-list-bounces@redhat.com Sender: "libvir-list" X-Scanned-By: MIMEDefang 3.1 on 10.11.54.5 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1694440408836100007 Signed-off-by: J=C3=A1n Tomko --- docs/kbase/virtiofs.rst | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/docs/kbase/virtiofs.rst b/docs/kbase/virtiofs.rst index 5940092db5..ecfb8e4236 100644 --- a/docs/kbase/virtiofs.rst +++ b/docs/kbase/virtiofs.rst @@ -59,6 +59,35 @@ Sharing a host directory with a guest =20 Note: this requires virtiofs support in the guest kernel (Linux v5.4 or= later) =20 +ID mapping +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D + +In unprivileged mode (``qemu:///session``), mapping user/group IDs is avai= lable +(since libvirt version TBD). After reserving an ID range from the host for= your +regular user + +:: + + $ cat /etc/subuid + jtomko:100000:65536 + $ cat /etc/subgid + jtomko:100000:65536 + +you can let virtiofsd map guest UIDs from 0 to 65535 +to host IDs 100000 to 165535 for example: + +:: + + + + ... + + + + + + + Optional parameters =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 --=20 2.41.0