Skip to contentSkip to conversation

fscryptctl: new package

PATCH New Peter Korsgaard 1 participant 2 messages Sep 12, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fscryptctl: new package

fscryptctl is a low-level tool written in C that handles raw keys and manages policies for Linux filesystem encryption.

---
 package/Config.in                  |  1 +
 package/fscryptctl/Config.in       | 12 ++++++++++++
 package/fscryptctl/fscryptctl.hash |  3 +++
 package/fscryptctl/fscryptctl.mk   | 20 ++++++++++++++++++++
 4 files changed, 36 insertions(+)
 create mode 100644 package/fscryptctl/Config.in
 create mode 100644 package/fscryptctl/fscryptctl.hash
 create mode 100644 package/fscryptctl/fscryptctl.mk
package/Config.in +1 -0
index 7a277d75ca..4d7d5a29cd 100644
@@ -180,6 +180,7 @@ menu "Filesystem and flash utilities"
 	source "package/exfat-utils/Config.in"
 	source "package/f2fs-tools/Config.in"
 	source "package/flashbench/Config.in"
+	source "package/fscryptctl/Config.in"
 	source "package/fwup/Config.in"
 	source "package/genext2fs/Config.in"
 	source "package/genpart/Config.in"
package/fscryptctl/Config.in new file +12 -0
new file mode 100644
index 0000000000..91b9ba8ebe
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_FSCRYPTCTL
+	bool "fscryptctl"
+	help
+	  fscryptctl is a low-level tool written in C that handles raw
+	  keys and manages policies for Linux filesystem encryption.
+
+	  Notice: Fscrypt support on EXT4 requires a kernel with
+	  CONFIG_EXT4_ENCRYPTION=y and a file system with the
+	  encryption option and block size equal to CPU page size
+	  (BR2_TARGET_ROOTFS_EXT2_MKFS_OPTIONS="-O encrypt -b 4096")
+
+	  https://github.com/google/fscryptctl
package/fscryptctl/fscryptctl.hash new file +3 -0
new file mode 100644
index 0000000000..ea3a47b057
@@ -0,0 +1,3 @@
+# Locally calculated
+sha256 ad5ca31fa2372d4d9c01439bf5b9717d4b9775630d7947b9c6b69377150e76a1  fscryptctl-18428569e4b23cf33b90046aaed3b5fbdab3b191.tar.gz
+sha256 cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30  LICENSE
package/fscryptctl/fscryptctl.mk new file +20 -0
new file mode 100644
index 0000000000..843cb7887b
@@ -0,0 +1,20 @@
+################################################################################
+#
+# fscryptctl
+#
+################################################################################
+
+FSCRYPTCTL_VERSION = 18428569e4b23cf33b90046aaed3b5fbdab3b191
+FSCRYPTCTL_SITE = $(call github,google,fscryptctl,$(FSCRYPTCTL_VERSION))
+FSCRYPTCTL_LICENSE = Apache-2.0
+FSCRYPTCTL_LICENSE_FILES = LICENSE
+
+define FSCRYPTCTL_BUILD_CMDS
+	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) fscryptctl
+endef
+
+define FSCRYPTCTL_INSTALL_TARGET_CMDS
+	$(INSTALL) -m 0755 -D $(@D)/fscryptctl $(TARGET_DIR)/usr/bin/fscryptctl
+endef
+
+$(eval $(generic-package))
Signature · 1 line
2.11.0
#1 lore raw

PATCH 1/1 fscryptctl: new package

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Peter" == Peter Korsgaard <[email protected]> writes:

fscryptctl is a low-level tool written in C that handles raw keys and manages policies for Linux filesystem encryption.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard