From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 4NC0HGhidmOEvAAAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 17:33:44 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id QPbGG2hidmNALgEAG6o9tA (envelope-from ) for ; Thu, 17 Nov 2022 17:33:44 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 405312EC3E for ; Thu, 17 Nov 2022 17:33:44 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovhp5-0003Ae-BD; Thu, 17 Nov 2022 11:33:07 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovhp1-000393-LP for guix-patches@gnu.org; Thu, 17 Nov 2022 11:33:04 -0500 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1ovhp1-0002og-Ax for guix-patches@gnu.org; Thu, 17 Nov 2022 11:33:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovhp1-0003jf-7S for guix-patches@gnu.org; Thu, 17 Nov 2022 11:33:03 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59336] [PATCH 4/6] gnu: Add apparmor-utils. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Nov 2022 16:33:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 59336 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 59336@debbugs.gnu.org Received: via spool by 59336-submit@debbugs.gnu.org id=B59336.166870275714304 (code B ref 59336); Thu, 17 Nov 2022 16:33:03 +0000 Received: (at 59336) by debbugs.gnu.org; 17 Nov 2022 16:32:37 +0000 Received: from localhost ([127.0.0.1]:34126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovhoa-0003ie-JN for submit@debbugs.gnu.org; Thu, 17 Nov 2022 11:32:36 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:39030) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovhoZ-0003iR-Gr for 59336@debbugs.gnu.org; Thu, 17 Nov 2022 11:32:36 -0500 Date: Fri, 18 Nov 2022 00:32:00 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1668702750; h=from:from: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; bh=Vj01kv1PlND74VSI2N2aHXAOVDgYEHCPvkCRastChow=; b=a0EsuFeQqiWnANxYySdscTIECkFlfwfA23mVCAUgM/zv5XMAfqAr89/T+T2n1L5Vjkx4ST f0lC6MY3YVxYk51kw5WvOxBoAvaT5tg8nbcgK8984vurfypd+v7Xkqdci1a3wT7s1BFsFo bFw6PQpbbxaBpRqCbr2hbIHgXJho/e4N8tLBC6ki0zjaNGb9hckIinad1BXJJccNVvM7d1 ygv/ivUrT2m18T4arPNajpiT5++DifRkVBh8018c4RAwIPpdz+uvmxDrAghntQAIeB8Tg+ +TVU2Je9gGosESgezbmX8uls5pCBRpPmATPRj4zLlQBqE766FP4mFF9N0TAcAw== Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8bit X-Spamd-Bar: / X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: Hilton Chain X-ACL-Warn: , Hilton Chain via Guix-patches From: Hilton Chain via Guix-patches via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1668702824; h=from:from:sender:sender:reply-to: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:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Vj01kv1PlND74VSI2N2aHXAOVDgYEHCPvkCRastChow=; b=iMJhbtP6gojLs+ZyI3FLoZwjY7VQRPrS69IES2YcgD64Cn7XmwPSoXrpxQr+b4moUBMywI NF55S7svDJgjTQRMS4EBTTNa+0kUtlWov2sXa9kreQUiaBMtVtiE4/RBX3l/sLnWPlGWMQ jsynC+CWE2G8bAYSTvinXqT906lCbWkSGucUh3DRlaaTNegXQJLRGdnjuiim6O3hIvzEcJ Rb/cWNfjh7Ecmy2p1AhtCSm7wrBbHNos0i2SLQVDlzQY/nuT07tQCZqteacvovEmMMt6aS YsBznVQNHntu4N7VW78M8IJVZ+A6e+q0NRELVQLAO4VfKLbybZBPZqBHMn/N+w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668702824; a=rsa-sha256; cv=none; b=ckuIzFXkXlMGQVFGba/OuXngY4mY6NvK/N9Gs+zcMieJ2jJu0JDHR+XK6EvVQpOKI7n4SX H59QEjSznmbZ21JCFR5JBY4vMhkN136OpN/0N8tElZrv50oK+CEY72drNw+MmxYGVKrlfr txElMYYO33npn0vO37I+fMAVzyb0g1UqT+ZsQJd+8gtykaK4LCfoxKacTv/8iH8HU13lCy YXqsCTu/EJrJ4EzfAwm2XM1WW8uwaVjVQ5nVL1bOF82V/X2aAOgNm/JzpAzopBuSEjlwpW ZwVUxFYjk904bd3GeJgYcATUO+9Uci5jMH08N1pGIOBklRTe8UQzq4l3X4OekA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=a0EsuFeQ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.53 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=a0EsuFeQ; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 405312EC3E X-Spam-Score: -3.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: kOIWhpOSv+d4 * gnu/packages/apparmor.scm (apparmor-utils): New variable. --- gnu/packages/apparmor.scm | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/gnu/packages/apparmor.scm b/gnu/packages/apparmor.scm index 8648a2213f..b753ffc88a 100644 --- a/gnu/packages/apparmor.scm +++ b/gnu/packages/apparmor.scm @@ -146,3 +146,39 @@ (define-public apparmor-parser (native-inputs (modify-inputs (package-native-inputs base) (append bison flex python-minimal)))))) + +(define-public apparmor-utils + (let ((base apparmor)) + (package + (inherit base) + (name "apparmor-utils") + (arguments + (append + ;; FIXME: Tests required Python library from this package (itself). + (list #:tests? #f) + (substitute-keyword-arguments (package-arguments base) + ((#:phases phases) + #~(modify-phases #$phases + (replace 'change-directory + (lambda _ + (chdir "utils"))) + (add-after 'change-directory 'fix-paths + (lambda* (#:key inputs #:allow-other-keys) + ;; Fix kernel header path + (substitute* "Makefile" + (("/include/linux/capability.h" path) + (search-input-file inputs path))) + ;; Fix apparmor_parser path + (for-each (lambda (file) + (substitute* file + (("/sbin/apparmor_parser" path) + (search-input-file inputs path)))) + '("apparmor/aa.py" + "apparmor/easyprof.py" + "logprof.conf"))))))))) + (native-inputs + (modify-inputs (package-native-inputs base) + (append python-minimal))) + (inputs + (modify-inputs (package-inputs base) + (append apparmor-parser)))))) -- 2.38.1