From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id IK+9BBE5WGOFUQEAbAwnHQ (envelope-from ) for ; Tue, 25 Oct 2022 21:29:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id MJydBBE5WGP2RgAAauVa8A (envelope-from ) for ; Tue, 25 Oct 2022 21:29:21 +0200 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 CA59D5955 for ; Tue, 25 Oct 2022 21:29:20 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onPbS-0002uY-IA; Tue, 25 Oct 2022 15:28:48 -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 1onPap-0001Co-34 for guix-patches@gnu.org; Tue, 25 Oct 2022 15:28:07 -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 1onPao-0003NU-Ae for guix-patches@gnu.org; Tue, 25 Oct 2022 15:28:06 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1onPan-00047E-Uv for guix-patches@gnu.org; Tue, 25 Oct 2022 15:28:05 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58768] [PATCH 9/9] gnu: Add gocryptfs. Resent-From: Felix Lechner Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 25 Oct 2022 19:28:05 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58768 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58768@debbugs.gnu.org Cc: "\(" , Felix Lechner Received: via spool by 58768-submit@debbugs.gnu.org id=B58768.166672606415727 (code B ref 58768); Tue, 25 Oct 2022 19:28:05 +0000 Received: (at 58768) by debbugs.gnu.org; 25 Oct 2022 19:27:44 +0000 Received: from localhost ([127.0.0.1]:52385 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onPaR-00045V-JT for submit@debbugs.gnu.org; Tue, 25 Oct 2022 15:27:43 -0400 Received: from linode.us-core.com ([23.239.4.72]:49596) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1onPaM-00044G-2b for 58768@debbugs.gnu.org; Tue, 25 Oct 2022 15:27:38 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=2017; bh=BWcZIa5COyHpYqG PZYaLnSMxjUoQShHBeZIXMobkTjM=; h=references:in-reply-to:date:subject: cc:to:from; d=lease-up.com; b=f8GqPOtXYLbmlKCKsBiRtRsVY6wgnKSBDzmJgSNr pVvY0PPcDTTxSQDL/b8N2DuOd7FdN2nrpKopoC34Pzgup2UOi/90YFnOSPk7tLLuS8PkoY dKCjj7miBuHgc6cu1Hx6hVpU0fPA7nR0u4XNEcLSVc3XGSmXIaBGZIyakn5N0= Received: by linode.us-core.com (OpenSMTPD) with ESMTPSA id 2334bb54 (TLSv1.3:AEAD-AES256-GCM-SHA384:256:NO); Tue, 25 Oct 2022 19:27:33 +0000 (UTC) Received: from lechner-desktop.us-core.com (localhost.us-core.com [127.0.0.1]) by localhost (OpenSMTPD) with ESMTP id 4ed10699; Tue, 25 Oct 2022 19:27:31 +0000 (UTC) Date: Tue, 25 Oct 2022 12:27:27 -0700 Message-Id: <20221025192727.2175-9-felix.lechner@lease-up.com> X-Mailer: git-send-email 2.38.0 In-Reply-To: <20221025192727.2175-1-felix.lechner@lease-up.com> References: <20221025192727.2175-1-felix.lechner@lease-up.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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: , Sender: "Guix-patches" Reply-to: Felix Lechner X-ACL-Warn: , Felix Lechner via Guix-patches From: Felix Lechner via Guix-patches via Errors-To: 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=1666726160; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=A6bKgg5/RripHPGwwuCH4FZo9KIOLy4ij9vS1NG88iw=; b=OxV++3Fi/Dl9QeUR2v6L4LspQZpOw7lmKBjtdxlASMYBQrKBKqMh1miy+eUdESnwzS/NKC kGyGw185GYoB5Kym45hZVKe2ZwEwdS36xkmzy40YPVseaYr+M7bCmW9TJMLJ2Cvf8q48Mj /D1PCiV5V6EB2tPU+JlFohe8TaZ9Tog3XLtlH+SCPO8JBjrQ42Ydd/LiT9VvSOBpq6rvXJ OZbZ8CkXCq/TMiLPe7XaQWUKPj/BG4yEVvwM1iy18tVHC9agB0d9d7pTDtnE1i+7JteND7 wRhtqx/OWjt6UiK+IEts99BOIffedXheda4L1VXE1cXkICoHWI379BNwBQA4Nw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1666726160; a=rsa-sha256; cv=none; b=px9UW8h7ukaLYKwoWERS9/3UkX+lbUSNGzFVKImNmBNmpSpCAmOlnwPXI1UxTlb8wzdtNa PlzkTWhVnto9iW/LRKFOO74T8nOXbnDsRnHBjePOywsIUyUYtM5xThPm6ncHxzUQCSzkdT BU29N2Pj1RqRTeauZsdDOVINLRuRhYepnTSrFCkKEBGpX07rFrokfsjgwsm3sXSFXKHBTc 6aSygSAIn6uHsEKjpSAdqK3t0ueCvrGV5nX4XyYcKYmlkdn0QsLJDGNN7tqMAyBMMvAkZr VS0gmPtNHbhhXsTldGoFoE3lDgrBnE0gigZyAjvXBZIcjHSVKZWP6DUjAmAtuQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=f8GqPOtX; 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: -1.91 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lease-up.com header.s=2017 header.b=f8GqPOtX; 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: CA59D5955 X-Spam-Score: -1.91 X-Migadu-Scanner: scn1.migadu.com X-TUID: fOn+42Ebu/rR * gnu/packages/file-systems.scm (gocryptfs): New variable. --- gnu/packages/file-systems.scm | 74 +++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) diff --git a/gnu/packages/file-systems.scm b/gnu/packages/file-systems.scm index 4b1c1cebe8..3fe68ca313 100644 --- a/gnu/packages/file-systems.scm +++ b/gnu/packages/file-systems.scm @@ -422,6 +422,80 @@ (define-public fstransform (license (list license:gpl2 ; fsattr/src/e4attr.* → sbin/fsattr license:gpl3+)))) ; the rest +(define-public gocryptfs + (package + (name "gocryptfs") + (version "2.3.0") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/rfjakob/gocryptfs") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1lkcx61r93xq21scg98hrvclwwxbli93pqnnck0d08isvhgjd590")))) + (build-system go-build-system) + (arguments + (list + #:import-path "github.com/rfjakob/gocryptfs" + #:build-flags + #~(list + "-ldflags" (string-append + "-X main.GitVersion=" #$version + " -X main.GitVersionFuse=" #$(package-version + go-github-com-hanwen-go-fuse-v2) + " -X main.BuildDate=" "[reproducible]")) + #:phases + #~(modify-phases %standard-phases + ;; after 'check phase, should maybe unmount leftover mounts as in + ;; https://github.com/rfjakob/gocryptfs/blob/a55b3cc15a6d9bce116a90f33df4bc99d9dd6a10/test.bash#L28 + (replace 'build + (lambda arguments + (for-each + (lambda (directory) + (apply (assoc-ref %standard-phases 'build) + (append arguments (list #:import-path directory)))) + (list + "github.com/rfjakob/gocryptfs" + "github.com/rfjakob/gocryptfs/gocryptfs-xray" + "github.com/rfjakob/gocryptfs/contrib/statfs" + "github.com/rfjakob/gocryptfs/contrib/findholes" + "github.com/rfjakob/gocryptfs/contrib/atomicrename"))))))) + (native-inputs (list + go-github-com-hanwen-go-fuse-v2 + go-github-com-jacobsa-crypto + go-github-com-jacobsa-oglematchers + go-github-com-jacobsa-oglemock + go-github-com-jacobsa-ogletest + go-github-com-jacobsa-reqtrace + go-github-com-pkg-xattr + go-github-com-rfjakob-eme + go-github-com-sabhiram-go-gitignore + go-github-com-spf13-pflag + go-golang-org-x-crypto + go-golang-org-x-net + go-golang-org-x-sys + go-golang-org-x-term + openssl + pkg-config)) + (home-page "https://github.com/rfjakob/gocryptfs") + (synopsis "Encrypted overlay filesystem") + (description + "Gocryptfs is an encrypted overlay filesystem written in Go. It +features a file-based encryption that is implemented as a mountable +FUSE filesystem. + +Gocryptfs was inspired by EncFS and strives to fix its security issues +while providing good performance. Gocryptfs is as fast as EncFS in the +default mode and significantly faster than paranoia mode in EncFS, +which provides a security level comparable to Gocryptfs. + +On CPUs without AES-NI, gocryptfs uses OpenSSL through a thin wrapper +called stupidgcm. This provides a 4x speedup compared to Go's builtin +AES-GCM implementation.") + (license license:expat))) + (define-public gphotofs (package (name "gphotofs") -- 2.38.0