From nobody Thu May 9 21:58:54 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.129.124 as permitted sender) client-ip=170.10.129.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.129.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=1652962640; cv=none; d=zohomail.com; s=zohoarc; b=e/diK8CKkvMyKGAoxoWsQSgUlsOb2IucllCN9PzYtRQuXQsHZfVsxUlpldFBA3CnVW6trPgVnz4CRcNnxvdjTs83/NqEUa+PiFnHlkos8zFyHO3ZvWh8fFGxmZEzvJ7hhyFh63m4/DRhCl93bPGidptJrBT2Vz0epxBqIH4ugLk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1652962640; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=4SgZ5NejKhYDz6pzQhWOf/Vy3lXjYYDPc8VKqNVDvCk=; b=Tam/MsuBld52iF2nV6If41mX/7R5L7L+zqhfIblV+Is63obIY6TFX/Dxp0/1V7K0fWo/Ho7YOgGymPM4HjjnK8fmwmTjSK6+312pMDR61RXRJs35OreSSHmuoxf6GhcF4+Dvx2oQfqfAV3i/8vPuC7VJ8S5KDNyhWE7GNNIlvL4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.129.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.129.124]) by mx.zohomail.com with SMTPS id 1652962640558630.4576892586791; Thu, 19 May 2022 05:17:20 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-601-AWMPpn7gPDi0msM0672z4g-1; Thu, 19 May 2022 08:17:13 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D4FB0101036A; Thu, 19 May 2022 12:17:10 +0000 (UTC) Received: from mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (unknown [10.30.29.100]) by smtp.corp.redhat.com (Postfix) with ESMTP id 626B4C27E8A; Thu, 19 May 2022 12:17:09 +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 22076193F6C8; Thu, 19 May 2022 12:17:09 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 390EE1949759 for ; Thu, 19 May 2022 12:17:08 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 26422C27E8A; Thu, 19 May 2022 12:17:08 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast10.extmail.prod.ext.rdu2.redhat.com [10.11.55.26]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 22DDAC1914E for ; Thu, 19 May 2022 12:17:08 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) (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 0B0041E7DCCC for ; Thu, 19 May 2022 12:17:08 +0000 (UTC) Received: from mail-wr1-f69.google.com (mail-wr1-f69.google.com [209.85.221.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-562-RM3c-b8iMMSfTuqaIklVsQ-1; Thu, 19 May 2022 08:17:06 -0400 Received: by mail-wr1-f69.google.com with SMTP id x4-20020a5d4444000000b0020d130e8a36so1496874wrr.9 for ; Thu, 19 May 2022 05:17:06 -0700 (PDT) Received: from wheatley.localdomain (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id v18-20020a05600c215200b00394586f696dsm6637165wml.11.2022.05.19.05.17.04 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 May 2022 05:17:05 -0700 (PDT) Received: from wheatley.redhat.com (wheatley.k8r.cz [127.0.0.1]) by wheatley.localdomain (Postfix) with ESMTP id 2C62A6F4358D for ; Thu, 19 May 2022 14:17:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1652962639; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=4SgZ5NejKhYDz6pzQhWOf/Vy3lXjYYDPc8VKqNVDvCk=; b=ZpcAOfOgOG2Z5+2YQewmxazOZKi3QVle6SjyzNEYSNRMSNhQiZUIaSJ2a/UII8sUMltSmz maXGltzfEm8JNw5CfRavQlwBgae5RGVNLdE+wWLnskA1DePaEjMc63qa0am/6xPLHN2qtW m5lLRbSH2fdWjEAVluSOmcwU5QZhgJg= X-MC-Unique: AWMPpn7gPDi0msM0672z4g-1 X-Original-To: libvir-list@listman.corp.redhat.com X-MC-Unique: RM3c-b8iMMSfTuqaIklVsQ-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:mime-version :content-transfer-encoding; bh=4SgZ5NejKhYDz6pzQhWOf/Vy3lXjYYDPc8VKqNVDvCk=; b=X3G6pbUhP73f20Q/Z0uiukak14miOTnyeFyv5sBsYQRdUs9VOA504FEiWrdFJu8u9E ghhXT82kxqCpZEvb7v91KOnQzgmlLzzplHcejdwJaFvCKBQ9RmVf6vVGfk0uiVu7K2j2 Pqbx6SZpt8v/Y5t+kK6Si8xqurI4jczxowFFhUBK7hlI8nhftcskargE6B9gtXP9zJoA 7mZjBENUQp9Y+W89Ydn/5hIHN6w7xp28FbiQsbdW/QQg354p9q05SLPHBvTozqV4x4FB nlIl9uAyjGuW8vUruAQRlS6t3Fqkn2pT+teukQbkPLpbsLo8rsIp3JDUvBXTcTn8EIrN FPvw== X-Gm-Message-State: AOAM531/AGdSq2stPnTSvNvwYAB0S5139ZWdHziVA6EbGsg69eG7CCdx Kv05nST51FSTR+zJAve0A1Lp6jW7axqr4nqA5FtEZdaxaieOssOu98pbbOOlLTjCpFxLYMiQv0p h/f63+MPM0bDrp+SMxzYzcKuxKMHO4BlvSNNwpz3xE/HeT5EVT+Zvm9/i7PpVGYiJ7stC1W0= X-Received: by 2002:a05:600c:4e48:b0:397:5e5:6c25 with SMTP id e8-20020a05600c4e4800b0039705e56c25mr4023941wmq.24.1652962625753; Thu, 19 May 2022 05:17:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyArjMu0i8kJHVAsG/fY1zRUNLqcGRKRJ3p9EnWG7sL1/lX+Xf/bXKNukxtqXqWvEI0Ld8duA== X-Received: by 2002:a05:600c:4e48:b0:397:5e5:6c25 with SMTP id e8-20020a05600c4e4800b0039705e56c25mr4023912wmq.24.1652962625458; Thu, 19 May 2022 05:17:05 -0700 (PDT) From: Martin Kletzander To: libvir-list@redhat.com Subject: [PATCH] apparmor: Add support for dbus chardev Date: Thu, 19 May 2022 14:17:02 +0200 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 on 10.11.54.8 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 2.85 on 10.11.54.8 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) X-ZM-MESSAGEID: 1652962640895100001 Content-Type: text/plain; charset="utf-8"; x-default="true" Commit 7648e40da50e added support for dbus chardev but forgot to handle it = in AppArmor code. Signed-off-by: Martin Kletzander --- Pushed under the build-breaker rule. src/security/security_apparmor.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/security/security_apparmor.c b/src/security/security_appar= mor.c index 55c019394050..008384dee8c2 100644 --- a/src/security/security_apparmor.c +++ b/src/security/security_apparmor.c @@ -1022,6 +1022,7 @@ AppArmorSetChardevLabel(virSecurityManager *mgr, case VIR_DOMAIN_CHR_TYPE_SPICEVMC: case VIR_DOMAIN_CHR_TYPE_NMDM: case VIR_DOMAIN_CHR_TYPE_QEMU_VDAGENT: + case VIR_DOMAIN_CHR_TYPE_DBUS: case VIR_DOMAIN_CHR_TYPE_LAST: ret =3D 0; break; @@ -1085,6 +1086,7 @@ AppArmorSetNetdevLabel(virSecurityManager *mgr, case VIR_DOMAIN_CHR_TYPE_SPICEVMC: case VIR_DOMAIN_CHR_TYPE_NMDM: case VIR_DOMAIN_CHR_TYPE_QEMU_VDAGENT: + case VIR_DOMAIN_CHR_TYPE_DBUS: case VIR_DOMAIN_CHR_TYPE_LAST: ret =3D 0; break; --=20 2.35.1