From patchwork Fri May 8 01:59:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adam Duskett X-Patchwork-Id: 1285712 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20161025 header.b=ZoFNRn1O; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49JD713bq1z9sSm for ; Fri, 8 May 2020 12:00:12 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 8FB2021080; Fri, 8 May 2020 02:00:10 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TlSU8QJqK6th; Fri, 8 May 2020 02:00:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id EB3D42050A; Fri, 8 May 2020 02:00:07 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 27D7E1BF21A for ; Fri, 8 May 2020 02:00:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 23B5B87A84 for ; Fri, 8 May 2020 02:00:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 16QdCQL93ONs for ; Fri, 8 May 2020 02:00:05 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-pl1-f193.google.com (mail-pl1-f193.google.com [209.85.214.193]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8BF9D87951 for ; Fri, 8 May 2020 02:00:05 +0000 (UTC) Received: by mail-pl1-f193.google.com with SMTP id t7so34676plr.0 for ; Thu, 07 May 2020 19:00:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6ZtbRiBZHfoaT7eYkYfx2RR+2jfn1afM19WVV94qYYY=; b=ZoFNRn1O/XqG59NyGgupCLvUGGikhuwzty+3Ab89tztMbUXMO0LIRDxtr9ZHnZzMS9 ExD+XuMxZcTPvYvbWZmiyViAupDGS6ta7SfueA6R0SrDoqsmFLACsqFV/yxbVl2g4o8A S4IgA1rtfnygP5nPpLrQ+eIO3hFGWgm9inCi/qP0xvt76ayeklpVIQQa0bRAoCCYCf1W zJu9yrrESYARd30KIc6R3LRQF5q7Y6sbUE+wFpb5X+F3Wh/MSETTRxnWWLxmsswe3H5K +D3pvHmS/oPyGh5YQfRNUjOq5WMKHqrTjW45W6w9d1AVHTZf6RkY9IWWLa5G8eZBN9kQ HP6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6ZtbRiBZHfoaT7eYkYfx2RR+2jfn1afM19WVV94qYYY=; b=QznVH06G9BlomAG2djpGgVvPUx9m9o9yZ1ZHBUnM7kli4mhdWZEbqttUA4v5z4l+7N 7BI5GgYabX9TPBMg8aFrcmQQBDklkuiVnjTibcOD1s3uoFcoJ7lnSmKD5DAfnHji3xnP t11/TqFaB6p1aNnRdbWG8YN/OMx6P2AQUZgkLlQhr8XDx4E6/vsV0wW50pvhrdSBykqH Azl8Oq/stWfV5IcYymiSCbBnJkb5bQy2tJp7jT2ipd1gcpYMGGUj0MKWbjN+P+UNmDr9 0vf/UPYJhsH5fFD/rdMmdaPm/DXxbK3ECZKL6HjH/l2rmg5CRcy4tuo83hGuNk6bLqra nr3Q== X-Gm-Message-State: AGi0PubA0p1vgHcyT/QaErCkrsgBdW0iWPmJrWnpsngfgMUuhBpG8qrm lIKlbBlIUtJDeXZR0L5ZwLJar10ZZ5o= X-Google-Smtp-Source: APiQypKk7knWkveeGiVuz2EQdCEuf2byonkmIvxladBrd/olcGoGe5HNWdCtjVS3TE0ZuZtHrxOoyQ== X-Received: by 2002:a17:90a:c293:: with SMTP id f19mr3099092pjt.96.1588903204880; Thu, 07 May 2020 19:00:04 -0700 (PDT) Received: from localhost.localdomain ([178.128.184.60]) by smtp.gmail.com with ESMTPSA id p66sm79661pfb.65.2020.05.07.19.00.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 May 2020 19:00:04 -0700 (PDT) From: aduskett@gmail.com To: buildroot@buildroot.org Date: Thu, 7 May 2020 18:59:56 -0700 Message-Id: <20200508015956.3270405-5-aduskett@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200508015956.3270405-1-aduskett@gmail.com> References: <20200508015956.3270405-1-aduskett@gmail.com> MIME-Version: 1.0 Subject: [Buildroot] [PATCH 5/5] package/systemd: add support for apparmor X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Angelo Compagnucci , "Yann E . MORIN" , Adam Duskett , Maxime Hadjinlian Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" From: Adam Duskett If libapparmor is selected, depend on libapparmor and set -Dapparmor=true Signed-off-by: Adam Duskett --- package/systemd/systemd.mk | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/package/systemd/systemd.mk b/package/systemd/systemd.mk index 9f5429fd19..50398e747e 100644 --- a/package/systemd/systemd.mk +++ b/package/systemd/systemd.mk @@ -49,6 +49,13 @@ else SYSTEMD_CONF_OPTS += -Dacl=false endif +ifeq ($(BR2_PACKAGE_LIBAPPARMOR),y) +SYSTEMD_DEPENDENCIES += libapparmor +SYSTEMD_CONF_OPTS += -Dapparmor=true +else +SYSTEMD_CONF_OPTS += -Dapparmor=false +endif + ifeq ($(BR2_PACKAGE_AUDIT),y) SYSTEMD_DEPENDENCIES += audit SYSTEMD_CONF_OPTS += -Daudit=true