From nobody Thu Apr 25 12:16:50 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1502283358749387.15945672213206; Wed, 9 Aug 2017 05:55:58 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EDEFF31ACB1; Wed, 9 Aug 2017 12:55:56 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id BBF1F94AC0; Wed, 9 Aug 2017 12:55:56 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 55F4A4BB79; Wed, 9 Aug 2017 12:55:56 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id v79CtsSK020754 for ; Wed, 9 Aug 2017 08:55:54 -0400 Received: by smtp.corp.redhat.com (Postfix) id B07B7934F8; Wed, 9 Aug 2017 12:55:54 +0000 (UTC) Received: from mx1.redhat.com (ext-mx06.extmail.prod.ext.phx2.redhat.com [10.5.110.30]) by smtp.corp.redhat.com (Postfix) with ESMTPS id AAFDA934E9 for ; Wed, 9 Aug 2017 12:55:50 +0000 (UTC) Received: from boum.org (boum.org [204.13.164.192]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C466F91D4A for ; Wed, 9 Aug 2017 12:55:48 +0000 (UTC) Received: from censure.boum.org (censure.boum.org [192.168.122.20]) by boum.org (Postfix) with ESMTP id 1490372C for ; Wed, 9 Aug 2017 14:47:42 +0200 (CEST) Received: from boum.org ([192.168.122.29]) by censure.boum.org (censure.boum.org [192.168.122.20]) (amavisd-new, port 10024) with ESMTP id I4umE15Q7gsR; Wed, 9 Aug 2017 14:47:41 +0200 (CEST) Received: from boum.org (boum.org [127.0.0.1]) with ESMTPSA id C7C68712 Received: by localhost (Postfix, from userid 1002) id C75E0724381; Tue, 8 Aug 2017 17:57:29 -0400 (EDT) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com EDEFF31ACB1 Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=boum.org Authentication-Results: ext-mx02.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=libvir-list-bounces@redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com EDEFF31ACB1 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com C466F91D4A Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=boum.org Authentication-Results: ext-mx06.extmail.prod.ext.phx2.redhat.com; spf=none smtp.mailfrom=intrigeri@boum.org DKIM-Filter: OpenDKIM Filter v2.11.0 mx1.redhat.com C466F91D4A From: intrigeri To: libvir-list@redhat.com Date: Tue, 8 Aug 2017 21:57:26 +0000 Message-Id: <20170808215726.10626-1-intrigeri+libvirt@boum.org> X-Greylist: Delayed for 00:08:04 by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 09 Aug 2017 12:55:50 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Wed, 09 Aug 2017 12:55:50 +0000 (UTC) for IP:'204.13.164.192' DOMAIN:'boum.org' HELO:'boum.org' FROM:'intrigeri@boum.org' RCPT:'' X-RedHat-Spam-Score: -0.01 (RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY) 204.13.164.192 boum.org 204.13.164.192 boum.org X-Scanned-By: MIMEDefang 2.78 on 10.5.110.30 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: libvir-list@redhat.com Cc: intrigeri Subject: [libvirt] [PATCH] apparmor, libvirt-qemu: Allow QEMU to gather information about available host resources. X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.26]); Wed, 09 Aug 2017 12:55:57 +0000 (UTC) X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" --- examples/apparmor/libvirt-qemu | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/examples/apparmor/libvirt-qemu b/examples/apparmor/libvirt-qemu index f462d7428c..dcfb1a5985 100644 --- a/examples/apparmor/libvirt-qemu +++ b/examples/apparmor/libvirt-qemu @@ -169,3 +169,9 @@ @{PROC}/device-tree/ r, @{PROC}/device-tree/** r, /sys/firmware/devicetree/** r, + + # for gathering information about available host resources + /sys/devices/system/cpu/ r, + /sys/devices/system/node/ r, + /sys/devices/system/node/node[0-9]*/meminfo r, + /sys/module/vhost/parameters/max_mem_regions r, --=20 2.14.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list