From nobody Mon Apr 29 08:03:16 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 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=1575939262; cv=none; d=zohomail.com; s=zohoarc; b=E/aQWiW+UDx4nu/7+YSQIQ8s/1MQfalI7id4QqQkAV3XyVYVQ5ahOEEpILvJ9Rcd5ZqyonYpTYFgR2mnIUTI/P7IH8J5siyJEeTK4cn3Ac5TdZTMGiDG6rVtd8OVwQLkDEcGbxMRMQKxflqsyKV8am7Sq2Z/NpDj5rDLQcbmLMs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1575939262; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=0VuZl3WznRQDDZsc2ZjLuK8/k8c8qL2XVAL1sNa2usY=; b=PCo51wlT/eemv/lPIkXB3BJyVqesJtMW2haQOljru0CFdccHB0wlidkhB3EnnRU5ufOGP2+enWy7y/2rVTtXw50upN+I2xP9jApxzRT00A2DwmAV800iVELgRfTYLJhrB18k5GK4sB3Yhz+bogNOBQEjmfucWfX0uCJ6E49/+Uc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1575939262640666.2654573787133; Mon, 9 Dec 2019 16:54:22 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-411-sorPMLDOOdyVlOW-AeZJ8A-1; Mon, 09 Dec 2019 19:54:20 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 788891804485; Tue, 10 Dec 2019 00:54:14 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3B8501001B0B; Tue, 10 Dec 2019 00:54:13 +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 246681809567; Tue, 10 Dec 2019 00:54:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id xBA0s5oB014608 for ; Mon, 9 Dec 2019 19:54:05 -0500 Received: by smtp.corp.redhat.com (Postfix) id 6A4C56E3F9; Tue, 10 Dec 2019 00:54:05 +0000 (UTC) Received: from worklaptop.redhat.com (ovpn-122-221.rdu2.redhat.com [10.10.122.221]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9814AA4B84; Tue, 10 Dec 2019 00:54:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1575939261; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=0VuZl3WznRQDDZsc2ZjLuK8/k8c8qL2XVAL1sNa2usY=; b=gW2gx5YM64kjxD775ZFyqr9wF6clkHtgk1sn5dDrJOky6pMR5sk9ojvVROYXwzM64bL1Wk ZtLLdrjoc4okkdl/p8LVZkQyBzCkWdhGipGUqfLhEQv0L9yz1cY5YPDnM4siJHwZLLpL24 TS78rJHhhvU6k03/jzXudqkzK3n7tjI= From: Cole Robinson To: libvirt-list@redhat.com Date: Mon, 9 Dec 2019 19:55:17 -0500 Message-Id: <69c33aac22f5911bb800fe41b62e704fe24cd4ce.1575939270.git.crobinso@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-loop: libvir-list@redhat.com Cc: christian.ehrhardt@canonical.com, Cole Robinson Subject: [libvirt] [PATCH v2] security: apparmor: Label externalDataStore 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: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-MC-Unique: sorPMLDOOdyVlOW-AeZJ8A-1 X-Mimecast-Spam-Score: 0 Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" Teach virt-aa-helper how to label a qcow2 data_file, tracked internally as externalDataStore. It should be treated the same as its sibling disk image Signed-off-by: Cole Robinson Reviewed-by: Christian Ehrhardt --- v2: s/src/tmp/ src/security/virt-aa-helper.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/security/virt-aa-helper.c b/src/security/virt-aa-helper.c index c93dddb228..f623ff965f 100644 --- a/src/security/virt-aa-helper.c +++ b/src/security/virt-aa-helper.c @@ -918,6 +918,10 @@ storage_source_add_files(virStorageSourcePtr src, if (add_file_path(tmp, depth, buf) < 0) return -1; =20 + if (tmp->externalDataStore && + storage_source_add_files(tmp->externalDataStore, buf, depth) <= 0) + return -1; + depth++; } =20 --=20 2.23.0 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list