From nobody Mon Feb 9 16:17:17 2026 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=1688044518; cv=none; d=zohomail.com; s=zohoarc; b=E7qFQdeVtodCUq21u1r8XBLLxWaMZl4Vc8VWms18RdaHeFwGij7283ppnbgEJa5gKMNSZRb/LQqsxQcYbbyMH3d9zgr7dpmk0OFFDSQ+vCFWhg4lteAL1686TM8mm04LG8lbPAe3/A0P2iOrBQjXxak34kC8SXV/FZxrdMthMIs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1688044518; 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=sQaT0EinxZLBVo8tireWD6ruosMxypKFgG1bthQOlWU=; b=cbb1Z/mnn0br06lNF5hYhKl/kH8W6VDbAH4sTaU8+GGusMh84nfxWzzzieFh4ytKGSixIETXTlY0rDM7k43C7B5HZkm83l4B8QZqy4lPJpqprWI55WmIkMcSHukXtIpnV4gOSaOl0Neh0MMhYnHfhs/JlSQiEdyxXfPGJJTinCs= 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 1688044518256360.96866702427985; Thu, 29 Jun 2023 06:15:18 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mx3-rdu2.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-32-ddhoLfcBMz25M_9StBjOrw-1; Thu, 29 Jun 2023 09:15:12 -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 2CCDF3C10152; Thu, 29 Jun 2023 13:15:02 +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 16516C478C8; Thu, 29 Jun 2023 13:15:02 +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 E06A81946A7E; Thu, 29 Jun 2023 13:15:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.rdu2.redhat.com [10.11.54.2]) by mm-prod-listman-01.mail-001.prod.us-east-1.aws.redhat.com (Postfix) with ESMTP id 9E8A51946A7A for ; Thu, 29 Jun 2023 13:15:00 +0000 (UTC) Received: by smtp.corp.redhat.com (Postfix) id 8F84240C6CCD; Thu, 29 Jun 2023 13:15:00 +0000 (UTC) Received: from harajuku.usersys.redhat.com (unknown [10.45.226.29]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 2361840C6CD1 for ; Thu, 29 Jun 2023 13:14:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1688044517; 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=sQaT0EinxZLBVo8tireWD6ruosMxypKFgG1bthQOlWU=; b=D/8uwMfUhRS/+4b+xt6WiCi5rGUjGrHbtFqgtSgdYKW73JspeFpx0Vrvv6Jfa8LZ7iQJ1C hvw07iFOBs9Obd/loVshT/yi29xmiGHFMUakKFOs0FEMErKeZNOJzvJLwnPEXvL2XSKYPb UxuQj0HrK37Awsq1vbsMkBsUUy25KjY= X-MC-Unique: ddhoLfcBMz25M_9StBjOrw-1 X-Original-To: libvir-list@listman.corp.redhat.com From: Andrea Bolognani To: libvir-list@redhat.com Subject: [libvirt PATCH 1/8] meson: Detect AppArmor 3.x Date: Thu, 29 Jun 2023 15:14:50 +0200 Message-ID: <20230629131457.248503-2-abologna@redhat.com> In-Reply-To: <20230629131457.248503-1-abologna@redhat.com> References: <20230629131457.248503-1-abologna@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.2 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.8 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: 1688044520387100005 Content-Type: text/plain; charset="utf-8"; x-default="true" We will soon need to base some decisions on whether AppArmor 3.x or 2.x is present on the system. Signed-off-by: Andrea Bolognani --- meson.build | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meson.build b/meson.build index aa391e7178..060eafc344 100644 --- a/meson.build +++ b/meson.build @@ -879,6 +879,9 @@ endif apparmor_dep =3D dependency('libapparmor', required: get_option('apparmor'= )) if apparmor_dep.found() conf.set('WITH_APPARMOR', 1) + if apparmor_dep.version().version_compare('>=3D3.0.0') + conf.set('WITH_APPARMOR_3', 1) + endif conf.set_quoted('APPARMOR_DIR', sysconfdir / 'apparmor.d') conf.set_quoted('APPARMOR_PROFILES_PATH', '/sys/kernel/security/apparmor= /profiles') endif --=20 2.41.0