From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.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 WM6pDMlhdmOXGAEAbAwnHQ (envelope-from ) for ; Thu, 17 Nov 2022 17:31:05 +0100 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id MJSYDMlhdmNp5QAA9RJhRA (envelope-from ) for ; Thu, 17 Nov 2022 17:31:05 +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 B99012E971 for ; Thu, 17 Nov 2022 17:31:04 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovhn5-0002lZ-HF; Thu, 17 Nov 2022 11:31:03 -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 1ovhn4-0002km-07 for guix-patches@gnu.org; Thu, 17 Nov 2022 11:31:02 -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 1ovhn3-0002aX-NG for guix-patches@gnu.org; Thu, 17 Nov 2022 11:31:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ovhn3-0003ff-Im for guix-patches@gnu.org; Thu, 17 Nov 2022 11:31:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#59336] [PATCH 1/6] gnu: Add libapparmor. Resent-From: Hilton Chain Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Thu, 17 Nov 2022 16:31:01 +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.166870264114085 (code B ref 59336); Thu, 17 Nov 2022 16:31:01 +0000 Received: (at 59336) by debbugs.gnu.org; 17 Nov 2022 16:30:41 +0000 Received: from localhost ([127.0.0.1]:34112 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovhmj-0003f6-CT for submit@debbugs.gnu.org; Thu, 17 Nov 2022 11:30:41 -0500 Received: from mail.boiledscript.com ([144.168.59.46]:50884) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ovhmg-0003et-C5 for 59336@debbugs.gnu.org; Thu, 17 Nov 2022 11:30:40 -0500 Date: Fri, 18 Nov 2022 00:30:02 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ultrarare.space; s=dkim; t=1668702632; 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=ftv+eeURXUBnv9G64zqBS6RGajoQ7Ibj7g9dTfnopDk=; b=tNL8WZRNrWvAHB57+7/5Z/4h5LKO1fxQhhW1GWxVc8AU3m6ubiKU5rkw38bcfgCF39z3a8 59DyCxSVgn2M9t5c2tEo1AN4ueNCeIPI34ZN/xhyhLv884kE1FRlNjxnW8CPQf5ZzVNwuB n2wJhQZ4koIIbpJyQJ2MUcEDCMdnQiKU5j3GVr/JaAMY3MVHgjFA1Na0KL2cq9bFt4LYfr Eq73FMQ4UBoOOaRU59fKYT+/hUkutaCTEbvncoYV+BGLJU9UkU28DVmJk+dPiBVHyRjLGj W/pp7/83+FWiMgJ3Fjeqdnd/rX+DjqVowrsBSGxyoTEv1JWhWteli/jXYfaiEA== Message-ID: In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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=1668702664; 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=ftv+eeURXUBnv9G64zqBS6RGajoQ7Ibj7g9dTfnopDk=; b=PCRS7x80a1TUIa3apJWIZ5dro+0S3xwwiwKm0bpVqQgQ4OKkBdQ5g4T1yS4FwXL9cbr5Yq nM9ovvS96oj03O7v4WBFH0taJLUpuuVvHlx5fxEmgoxCpXUpiCPNI7QH7NXdCRXUOEmnp/ QVYy1nynMNks2U0t8/Bp65z1ttMJwkVqWB9ylxoki2pIvhyoP667jn0egqpj4R7WbHqP9/ Xix4XFQD8m6G4Ijqr3Jc1S6+vd7jrNmF4Tl4kKiLsEj0XGxcO0RnLRxmWrd5NO/GkPmVWx PIsiiOVv2Z/XJjqcQlkncnBsv7fiL2gduZwnUu12XJyOO4thQrNhKda1hOShQw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668702664; a=rsa-sha256; cv=none; b=sHqNv+Pvvx7dDR6bjaMel3ZF7UxKMEi40fdtu46op+mPax/2AcJaRRVoY1ktVFVQkZfFaI 0gGo68SCxABCgIXChgY5TuhAMYbpRYYwSJuMkOscB9dMwToYJJG2nhfjpMDdYKhECmeL/j JXrubaD5+B45FpjAlgTIWnAbJZWetc6FGeYWhqn5BFGEn0MqIgxbbyYMY5KB6IZk0l87NC VyxWJyoRSz42ZRpgXCpiwE1vSCAei/m/WIwgdCWkwAmtlK37fOvSZpvvR9TpJaVWPiTFqN MXoPO7WNB3vNQrTTXsSMYt1NkhLS8krumAm9xtGgV//S5R2dEEQjnmrH+j3uQQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=ultrarare.space header.s=dkim header.b=tNL8WZRN; 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=tNL8WZRN; 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: B99012E971 X-Spam-Score: -3.53 X-Migadu-Scanner: scn1.migadu.com X-TUID: V3iqO2sJl7yK * gnu/packages/apparmor.scm: New file. (libapparmor): New variable. * gnu/local.mk (GNU_SYSTEM_MODULES): Add the file. --- gnu/local.mk | 1 + gnu/packages/apparmor.scm | 90 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 91 insertions(+) create mode 100644 gnu/packages/apparmor.scm diff --git a/gnu/local.mk b/gnu/local.mk index b154caaaaa..8907ca625b 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -115,6 +115,7 @@ GNU_SYSTEM_MODULES = \ %D%/packages/anthy.scm \ %D%/packages/antivirus.scm \ %D%/packages/apl.scm \ + %D%/packages/apparmor.scm \ %D%/packages/apr.scm \ %D%/packages/arcan.scm \ %D%/packages/aspell.scm \ diff --git a/gnu/packages/apparmor.scm b/gnu/packages/apparmor.scm new file mode 100644 index 0000000000..8cb4c7e94d --- /dev/null +++ b/gnu/packages/apparmor.scm @@ -0,0 +1,90 @@ +;;; GNU Guix --- Functional package management for GNU +;;; Copyright © 2022 Hilton Chain +;;; +;;; This file is part of GNU Guix. +;;; +;;; GNU Guix is free software; you can redistribute it and/or modify it +;;; under the terms of the GNU General Public License as published by +;;; the Free Software Foundation; either version 3 of the License, or (at +;;; your option) any later version. +;;; +;;; GNU Guix is distributed in the hope that it will be useful, but +;;; WITHOUT ANY WARRANTY; without even the implied warranty of +;;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;;; GNU General Public License for more details. +;;; +;;; You should have received a copy of the GNU General Public License +;;; along with GNU Guix. If not, see . + +(define-module (gnu packages apparmor) + #:use-module ((guix licenses) #:prefix license:) + #:use-module (gnu packages autotools) + #:use-module (gnu packages base) + #:use-module (gnu packages bison) + #:use-module (gnu packages dejagnu) + #:use-module (gnu packages flex) + #:use-module (gnu packages gawk) + #:use-module (gnu packages gettext) + #:use-module (gnu packages linux) + #:use-module (gnu packages perl) + #:use-module (gnu packages pkg-config) + #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) + #:use-module (gnu packages ruby) + #:use-module (gnu packages swig) + #:use-module (guix build-system gnu) + #:use-module (guix gexp) + #:use-module (guix git-download) + #:use-module (guix packages) + #:use-module (guix utils)) + +(define-public libapparmor + (package + (name "libapparmor") + (version "3.1.2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/apparmor/apparmor") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1h77a7ww0rxfv5nsi1iy4fffklxdr2vq6r7kdsqm15yysglhbjyi")))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags + #~(list (string-append "LDFLAGS=-Wl,-rpath=" #$output "/lib") + "--with-perl" "--with-python") + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'change-directory + (lambda _ + (chdir "libraries/libapparmor")))))) + (native-inputs + (list autoconf + automake + bison + dejagnu + flex + libtool + perl + python-minimal + swig + which)) + (home-page "https://apparmor.net") + (synopsis "Linux kernel security module") + (description + "AppArmor is an effective and easy-to-use Linux application security +system. + +AppArmor proactively protects the operating system and applications from +external or internal threats, even zero-day attacks, by enforcing good +behavior and preventing both known and unknown application flaws from being +exploited. + +AppArmor supplements the traditional Unix discretionary access control (DAC) +model by providing mandatory access control (MAC). It has been included in +the mainline Linux kernel since version 2.6.36 and its development has been +supported by Canonical since 2009.") + (license license:lgpl2.1))) -- 2.38.1