From mboxrd@z Thu Jan 1 00:00:00 1970 Delivery-date: Mon, 02 Aug 2021 07:43:09 +0200 Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by lore.white.stw.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mAQjF-0007Ty-4p for lore@lore.pengutronix.de; Mon, 02 Aug 2021 07:43:09 +0200 Received: from localhost ([127.0.0.1] helo=metis.ext.pengutronix.de) by metis.ext.pengutronix.de with esmtp (Exim 4.92) (envelope-from ) id 1mAQjE-0000XS-JL; Mon, 02 Aug 2021 07:43:08 +0200 Received: from dude.hi.pengutronix.de ([2001:67c:670:100:1d::7]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mAQif-0000XD-9s; Mon, 02 Aug 2021 07:42:33 +0200 Received: from afa by dude.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1mAQif-0001gE-0K; Mon, 02 Aug 2021 07:42:33 +0200 From: Ahmad Fatoum To: ptxdist@pengutronix.de Date: Mon, 2 Aug 2021 07:42:31 +0200 Message-Id: <20210802054231.6401-1-a.fatoum@pengutronix.de> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Subject: [ptxdist] [PATCH v2] fscryptctl: new package X-BeenThere: ptxdist@pengutronix.de X-Mailman-Version: 2.1.29 Precedence: list List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Cc: Ahmad Fatoum Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "ptxdist" X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: ptxdist-bounces@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false fscryptctl is a low-level tool that handles raw keys and manages policies for the Linux filesystem encryption, specifically the "fscrypt" kernel interface which is supported by the ext4, f2fs, and UBIFS filesystems. fscryptctl is mainly intended for embedded systems which can't use the full-featured fscrypt tool. It does *not* handle key generation, key stretching, key wrapping, or PAM integration. Signed-off-by: Ahmad Fatoum --- v1 -> v2: - Add FSCRYPTCTL_LICENSE_FILES (Roland) --- rules/fscryptctl.in | 14 +++++++++++ rules/fscryptctl.make | 56 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 rules/fscryptctl.in create mode 100644 rules/fscryptctl.make diff --git a/rules/fscryptctl.in b/rules/fscryptctl.in new file mode 100644 index 000000000000..712e56899d24 --- /dev/null +++ b/rules/fscryptctl.in @@ -0,0 +1,14 @@ +## SECTION=selinux + +config FSCRYPTCTL + tristate + prompt "fscryptctl" + help + fscryptctl is a low-level tool that handles raw keys and manages + policies for the Linux filesystem encryption, specifically the + "fscrypt" kernel interface which is supported by the ext4, + f2fs, and UBIFS filesystems. + + fscryptctl is mainly intended for embedded systems which can't use the + full-featured fscrypt tool. It does *not* handle key generation, + key stretching, key wrapping, or PAM integration. diff --git a/rules/fscryptctl.make b/rules/fscryptctl.make new file mode 100644 index 000000000000..8b103936bb04 --- /dev/null +++ b/rules/fscryptctl.make @@ -0,0 +1,56 @@ +# -*-makefile-*- +# +# Copyright (C) 2021 by Ahmad Fatoum +# + +PACKAGES-$(PTXCONF_FSCRYPTCTL) += fscryptctl + +# +# Paths and names +# +FSCRYPTCTL_VERSION := 1.0.0 +FSCRYPTCTL_MD5 := 1013d00ac166b233631100e5905004cc +FSCRYPTCTL := fscryptctl-$(FSCRYPTCTL_VERSION) +FSCRYPTCTL_SUFFIX := tar.gz +FSCRYPTCTL_URL := https://github.com/google/fscryptctl/archive/v$(FSCRYPTCTL_VERSION).$(FSCRYPTCTL_SUFFIX) +FSCRYPTCTL_SOURCE := $(SRCDIR)/$(FSCRYPTCTL).$(FSCRYPTCTL_SUFFIX) +FSCRYPTCTL_DIR := $(BUILDDIR)/$(FSCRYPTCTL) +FSCRYPTCTL_LICENSE := Apache-2.0 +FSCRYPTCTL_LICENSE_FILES := \ + file://fscryptctl.c;startline=10;endline=20;md5=4a53da8a9783194ca4e10b3fa6d5db5b \ + file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +FSCRYPTCTL_CONF_TOOL := NO +FSCRYPTCTL_MAKE_OPT := \ + $(CROSS_ENV_CC) \ + CFLAGS="-O2 -g3 -Wall" \ + PREFIX=/usr + +FSCRYPTCTL_INSTALL_OPT := \ + $(FSCRYPTCTL_MAKE_OPT) \ + install + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/fscryptctl.targetinstall: + @$(call targetinfo) + + @$(call install_init, fscryptctl) + @$(call install_fixup, fscryptctl,PRIORITY,optional) + @$(call install_fixup, fscryptctl,SECTION,base) + @$(call install_fixup, fscryptctl,AUTHOR,"Ahmad Fatoum ") + @$(call install_fixup, fscryptctl,DESCRIPTION, "Low-level Linux fscrypt control tool") + + @$(call install_copy, fscryptctl, 0, 0, 0755, -, /usr/bin/fscryptctl) + + @$(call install_finish, fscryptctl) + + @$(call touch) + +# vim: syntax=make -- 2.30.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de