From nobody Tue Sep 9 19:11:27 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1749197176; cv=none; d=zohomail.com; s=zohoarc; b=nIgp4v44U0msNOPsRLyrxTjJ+WCm8QUMUAVVVE+pDZi7jDOw3oxYgeFjpzHT30O/0+GS/ZbKDuEuvBvvGg6DkGzZGr5FSMZRFAyk2oiIwIv2JwvHoS4sJwmnNinASEWmEyT+rC9liqSf2SZnF4f7N/kr5eyRSdPb0PWGnQrupPE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1749197176; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:Subject:Subject:To:To:Message-Id:Cc; bh=Sr2gtUv+P/9yd9fZ3FDwllR7fLkIqQLbc5oiSvZGyTs=; b=mYeXiiqqBoWx9KrPxNNML9hGcb7Z152sy/NwcjSwR2OsIDThz6hzNw07ghQdpRvUroNHqcAAA6Ycw0dhSmJ0Dsuncw53jsqjv3v/Kto58KeVJJNaKg+Vwoh5DLa2q3K8DqbEWWUY4nHxCQbvvBom3Yl+61DR62VCy5SBfhloEvE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1749197176693672.042620595484; Fri, 6 Jun 2025 01:06:16 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 996) id A51F513FA; Fri, 6 Jun 2025 04:06:15 -0400 (EDT) Received: from lists.libvirt.org (localhost [IPv6:::1]) by lists.libvirt.org (Postfix) with ESMTP id 6D1C613DC; Fri, 6 Jun 2025 04:05:51 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 996) id 6B4A010F2; Fri, 6 Jun 2025 04:05:48 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id AD98D1325 for ; Fri, 6 Jun 2025 04:05:46 -0400 (EDT) Received: from mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-637-V1SjGzF-MA6wub6leiZkOw-1; Fri, 06 Jun 2025 04:05:43 -0400 Received: from mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.111]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-02.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id B4D3C195608F for ; Fri, 6 Jun 2025 08:05:42 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.44.22.3]) by mx-prod-int-08.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id CAD84180045C for ; Fri, 6 Jun 2025 08:05:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on lists.libvirt.org X-Spam-Level: ** X-Spam-Status: No, score=2.8 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL,RCVD_IN_SBL_CSS,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE autolearn=no autolearn_force=no version=3.4.4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1749197146; h=from:from: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; bh=QkioquxnszBgTZpqHaEH08KiC9S1nK39l3e0/jJpikk=; b=IdyYjNHRp0eTD3XIyxqJAPv3MYte4Z8/J40iGHjr9jXHRhBZkt2Kvco318WTA5yq49luPt MlyZ+KcWrgEJNC65H9in6cyo4o0lBW/pxRxVT5iCSkB887ThfHwF1xmjFkcqFOrzN79L9e jY1+XwFaz9E5PuRyg8nS4SDqCtlthdY= X-MC-Unique: V1SjGzF-MA6wub6leiZkOw-1 X-Mimecast-MFC-AGG-ID: V1SjGzF-MA6wub6leiZkOw_1749197142 To: devel@lists.libvirt.org Subject: [PATCH] qemu.conf: Improve docs for 'dynamic_ownership' option Date: Fri, 6 Jun 2025 10:05:40 +0200 Message-ID: <8ec4d71379a969fdfd502255fce772cb91e54bdf.1749197140.git.pkrempa@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.111 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: P192KOCQIP_DT4OBQ1oBwHQsbOPDkh4DkexF1WfdOU0_1749197142 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: LFKGEDC2CVBUJWZ43NZTU6TDWLP4F4VS X-Message-ID-Hash: LFKGEDC2CVBUJWZ43NZTU6TDWLP4F4VS X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-config-1; header-match-config-2; header-match-config-3; header-match-devel.lists.libvirt.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.2 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Post: List-Subscribe: List-Unsubscribe: From: Peter Krempa via Devel Reply-To: Peter Krempa X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1749197178453116600 Content-Type: text/plain; charset="utf-8" From: Peter Krempa Add a note that the user/group can be overriden or relabelling disabled using per-vm/disk elements instead of disabling it globally. Add a note that read-only image labels are not restored. Closes: https://gitlab.com/libvirt/libvirt/-/issues/512 Signed-off-by: Peter Krempa Reviewed-by: Michal Privoznik --- src/qemu/qemu.conf.in | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/qemu/qemu.conf.in b/src/qemu/qemu.conf.in index 042bb75b50..221bfa8095 100644 --- a/src/qemu/qemu.conf.in +++ b/src/qemu/qemu.conf.in @@ -513,7 +513,17 @@ # Whether libvirt should dynamically change file ownership # to match the configured user/group above. Defaults to 1. -# Set to 0 to disable file ownership changes. +# +# Notes: +# - Per domain or per disk image user and group can be configured, or +# relabelling disabled using the elements in X= ML: +# +# https://www.libvirt.org/formatdomain.html#security-label +# +# - The user/group of read-only images is not restored as with read-write +# images as they may be shared among more domains. +# +# Set to 0 to disable file ownership changes globally in the qemu driver. #dynamic_ownership =3D 1 # Whether libvirt should remember and restore the original --=20 2.49.0