Understand fscryptctl runtime requirements
masterfscryptctl is a low-level tool for managing Linux filesystem encryption policies. It does not handle key generation, key stretching, or key wrapping.
Prerequisites:
- Kernel: Must support
CONFIG_FS_ENCRYPTION=y. Since v1.0,fscryptctlonly supports v2 encryption policies, requiring Linux kernel 5.4 or later. - Filesystem: Must be configured for encryption.
- For ext4: Use
tune2fs -O encrypton an existing filesystem ormkfs.ext4 -O encryptfor a new one. - For f2fs: Use
mkfs.f2fs -O encryptorfsck.f2fs -O encrypt.
- For ext4: Use
- Hardware (Optional): For hardware-wrapped inline encryption, you need Linux 6.16+ and compatible hardware (e.g., Qualcomm SM8650 HDK).