From patchwork Wed Jun 21 00:54:48 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiasoc5 X-Patchwork-Id: 51112 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 5118C27BBE2; Wed, 21 Jun 2023 01:59:31 +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=unavailable 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 6D42F27BBE9 for ; Wed, 21 Jun 2023 01:59:28 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qBmBe-0007F7-N8; Tue, 20 Jun 2023 20:59:07 -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 1qBmBb-0007Er-JM for guix-patches@gnu.org; Tue, 20 Jun 2023 20:59: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 1qBmBb-0007pO-BS for guix-patches@gnu.org; Tue, 20 Jun 2023 20:59:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qBmBa-0005jL-DQ; Tue, 20 Jun 2023 20:59:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#64199] [PATCH] gnu: Add firejail. 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 00:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 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-To: guix-patches@gnu.org X-Debbugs-Original-Xcc: Leo Famulari , Tobias Geerinckx-Rice Received: via spool by submit@debbugs.gnu.org id=B.168730909921967 (code B ref -1); Wed, 21 Jun 2023 00:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 21 Jun 2023 00:58:19 +0000 Received: from localhost ([127.0.0.1]:60172 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBmAo-0005i8-Ju for submit@debbugs.gnu.org; Tue, 20 Jun 2023 20:58:19 -0400 Received: from lists.gnu.org ([209.51.188.17]:39150) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qBmAm-0005i1-Pu for submit@debbugs.gnu.org; Tue, 20 Jun 2023 20:58:13 -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 1qBmAj-00078j-Na for guix-patches@gnu.org; Tue, 20 Jun 2023 20:58:11 -0400 Received: from knopi.disroot.org ([178.21.23.139]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qBmAg-0006m4-HN for guix-patches@gnu.org; Tue, 20 Jun 2023 20:58:08 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 6D9C04457A; Wed, 21 Jun 2023 02:58:01 +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 Bfo4FyoUhZwo; Wed, 21 Jun 2023 02:58:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1687309080; bh=cF7aNXjumr3hVc/kb7naP8ezucYEq98Zo6cd5Kz0KME=; h=From:To:Cc:Subject:Date; b=CpfGCtRHZehci/bJ0KB/veU5LMAz4pNS3WWSNiNn4DUzCzqcgeOd9dL+AhvuU7t8b ADxh+Cj5aVsUSYeZH2QKJLT0jjgX2hk9lAkcy5PP1YUUpaZLmRSafJ4l+NbVG8xGNn LJ10J0R5ETcffkzG9rB6NRzz2Udq4IZ0tBdgipOXUrkYgOdYBDAEnmp2wrkGRFwDvV 4niE/5iXqzNBHSezVc29pl5XqQeLuj2EJ/f8Zv8eCs+X/jTt9wAaCD1nB8es0ZmVdA 44jrcpVFNUMyFg26VfDXt0OSUF+FLmBAJC1QBMFV1x8rSSwyAsdEQI3LTod1cHy3yR D+3hrV4udRo7Q== Date: Tue, 20 Jun 2023 20:54:48 -0400 Message-ID: <9d5b11ec067f815f252235b8d67050a865b98727.1687308888.git.kiasoc5@disroot.org> MIME-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=kiasoc5@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action 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 Firejail compiles ok, but I'm currently unable to test this on Guix system, so I don't know if any other patching is required to make it work as expected. * gnu/packages/linux.scm (firejail): New variable. --- gnu/packages/linux.scm | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) base-commit: 1a0ff5cd83d3257efcab64740a1322de51fbc4a1 diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index 52fb883467..fe22412fbc 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -10135,6 +10135,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")