mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH v2] fscryptctl: new package
@ 2021-08-02  5:42 Ahmad Fatoum
  2021-08-06  6:44 ` [ptxdist] [APPLIED] " Michael Olbrich
  0 siblings, 1 reply; 2+ messages in thread
From: Ahmad Fatoum @ 2021-08-02  5:42 UTC (permalink / raw)
  To: ptxdist; +Cc: Ahmad Fatoum

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>
---
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 <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
+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 <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


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [ptxdist] [APPLIED] fscryptctl: new package
  2021-08-02  5:42 [ptxdist] [PATCH v2] fscryptctl: new package Ahmad Fatoum
@ 2021-08-06  6:44 ` Michael Olbrich
  0 siblings, 0 replies; 2+ messages in thread
From: Michael Olbrich @ 2021-08-06  6:44 UTC (permalink / raw)
  To: ptxdist; +Cc: Ahmad Fatoum

Thanks, applied as 78099dd4ddeaa6587c5127b8b1d902153dc2453d.

Michael

[sent from post-receive hook]

On Fri, 06 Aug 2021 08:44:54 +0200, Ahmad Fatoum <a.fatoum@pengutronix.de> wrote:
> 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>
> Message-Id: <20210802054231.6401-1-a.fatoum@pengutronix.de>
> [mol: expand license text for fscryptctl.c to start earlier]
> Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
> 
> 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..fb66ef5893e1
> --- /dev/null
> +++ b/rules/fscryptctl.make
> @@ -0,0 +1,56 @@
> +# -*-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
> +FSCRYPTCTL_LICENSE_FILES	:= \
> +	file://fscryptctl.c;startline=5;endline=20;md5=989e571b78197682b85e3643d13296e5 \
> +	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 <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

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-08-06  6:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-02  5:42 [ptxdist] [PATCH v2] fscryptctl: new package Ahmad Fatoum
2021-08-06  6:44 ` [ptxdist] [APPLIED] " Michael Olbrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox