mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [ptxdist] [PATCH] fscryptctl: new package
Date: Tue, 27 Jul 2021 16:05:35 +0200	[thread overview]
Message-ID: <20210727140535.11083-1-a.fatoum@pengutronix.de> (raw)

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 <a.fatoum@pengutronix.de>
---
 rules/fscryptctl.in   | 14 ++++++++++++
 rules/fscryptctl.make | 53 +++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 67 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..7520ab37c203
--- /dev/null
+++ b/rules/fscryptctl.make
@@ -0,0 +1,53 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2021 by Ahmad Fatoum <a.fatoum@pengutronix.de>
+#
+
+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
+
+# ----------------------------------------------------------------------------
+# 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 <a.fatoum@pengutronix.de>")
+	@$(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


             reply	other threads:[~2021-07-27 14:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-27 14:05 Ahmad Fatoum [this message]
2021-07-28  9:48 ` Roland Hieber
2021-08-02  5:45   ` Ahmad Fatoum
2021-08-02  8:33     ` Roland Hieber
2021-08-06  6:44       ` Michael Olbrich
2021-08-06  6:51         ` Ahmad Fatoum

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210727140535.11083-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox