From patchwork Wed Jun 21 01:00:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiasoc5 X-Patchwork-Id: 51113 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 67E0A27BBEA; Wed, 21 Jun 2023 02:02:13 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A887D27BBE2 for ; Wed, 21 Jun 2023 02:02:12 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBmEX-0007bU-6O; Tue, 20 Jun 2023 21:02:05 -0400 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 1qBmEU-0007bA-LE for guix-patches@gnu.org; Tue, 20 Jun 2023 21:02:03 -0400 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 1qBmEU-0000yr-Cz for guix-patches@gnu.org; Tue, 20 Jun 2023 21:02:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBmEU-0005qH-27; Tue, 20 Jun 2023 21:02:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64199] [PATCH v2] gnu: Add firejail. References: <9d5b11ec067f815f252235b8d67050a865b98727.1687308888.git.kiasoc5@disroot.org> In-Reply-To: <9d5b11ec067f815f252235b8d67050a865b98727.1687308888.git.kiasoc5@disroot.org> Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: leo@famulari.name, me@tobias.gr, guix-patches@gnu.org Resent-Date: Wed, 21 Jun 2023 01:02:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64199 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 64199@debbugs.gnu.org Cc: kiasoc5 , Leo Famulari , Tobias Geerinckx-Rice X-Debbugs-Original-Xcc: Leo Famulari , Tobias Geerinckx-Rice Received: via spool by 64199-submit@debbugs.gnu.org id=B64199.168730928122403 (code B ref 64199); Wed, 21 Jun 2023 01:02:02 +0000 Received: (at 64199) by debbugs.gnu.org; 21 Jun 2023 01:01:21 +0000 Received: from localhost ([127.0.0.1]:60179 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBmDp-0005pH-1u for submit@debbugs.gnu.org; Tue, 20 Jun 2023 21:01:21 -0400 Received: from knopi.disroot.org ([178.21.23.139]:43888) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBmDn-0005p4-GA for 64199@debbugs.gnu.org; Tue, 20 Jun 2023 21:01:20 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id DD3BA40603; Wed, 21 Jun 2023 03:01:15 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7T-OtGXd8WrW; Wed, 21 Jun 2023 03:01:14 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1687309274; bh=Zxvo5GHFFMuQMaie/s27GqkglLzwfa8S4noRxmNJmAE=; h=From:To:Cc:Subject:Date; b=CHnYadIahl46kNK8YemCF9w5BQDIsReXmMiVmXAWcAOB8kR/JF+KGvLRgpC3PxVM7 dHvwx1M6b8zSDCnrTq42Ecf6ScOGoQGHeoGjhaNdGxj804iNUKIX9uFw05BzlFvEIk 3TQhRLTkEW5w8YXKJ7WlF2JajSKl8T+0hWh5Qm08yU5Q6tsvdgBrN0h4i7iBwAqDU7 mVFK4hYvN80TKGdENczdPmA1KV85DxCF1WlAWPsTvgBxPkOu3noXkH802evXjMHhYB U4orF9ogy1jtVkf5ipPdIP6A4CcFeeSPIY0pGpWDWMwOaeh4CA6VWp4ZMeeGmRdgL1 rrgl0WRERnTUg== Date: Tue, 20 Jun 2023 21:00:54 -0400 Message-ID: MIME-Version: 1.0 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: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches X-Patchwork-Original-From: kiasoc5 via Guix-patches via From: kiasoc5 Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Forgot to add apparmor use-module. * gnu/packages/linux.scm (firejail): New variable. --- gnu/packages/linux.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) base-commit: 1a0ff5cd83d3257efcab64740a1322de51fbc4a1 diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 52fb883467..e7576475bc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -95,6 +95,7 @@ (define-module (gnu packages linux) #:use-module (gnu packages acl) #:use-module (gnu packages admin) #:use-module (gnu packages algebra) + #:use-module (gnu packages apparmor) #:use-module (gnu packages audio) #:use-module (gnu packages autotools) #:use-module (gnu packages avahi) @@ -10135,6 +10136,35 @@ (define-public kconfig-hardened-check This tool supports checking Kconfig options and kernel cmdline parameters.") (license license:gpl3))) +(define-public firejail + (package + (name "firejail") + (version "0.9.72") + (source (origin + (method url-fetch) + (uri (string-append "https://github.com/netblue30/firejail/releases/download/" version + "/firejail-" version + ".tar.xz" )) + (sha256 + (base32 + "1x77xy1mwfgjrcsymdda82bjnqgl7z2yymcb10mzd1zwik27gqc2")))) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (with-directory-excursion "test" + (invoke "make")))))))) + (build-system gnu-build-system) + (inputs + (list apparmor xdg-dbus-proxy)) + (synopsis "Linux namespaces sandbox program") + (description + "Firejail is a SUID sandbox program that reduces the risk of security breaches by restricting the running environment of untrusted applications using Linux namespaces, seccomp-bpf and Linux capabilities. The software includes sandbox profiles for a number of common Linux programs. Firejail should be added to the list of setuid programs in the system configuration to work properly.") + (home-page "https://github.com/netblue30/firejail") + (license license:gpl2))) + (define-public edac-utils (package (name "edac-utils")