util-linux/libblkid
Milan Broz 573538bfba blkid: Add support for LUKS2 and new LABEL attributes.
This patch adds support for detection of a LUKS2 superblock.

LUKS2 is new version of Linux Unified Key Setup for encrypted
block devices.

LUKS2 contains a binary header and then JSON area for metadata.
Blkid should only parse the binary part, including newly available
optional LABEL and SUBSYSTEM fields.

LABEL is similar to filesystem label. The SUBSYSTEM field is
in principle, just a second label and can be used for specific udev rules
(for example if you have some 3rd party system that activates
volumes automatically, you can mark devices using this attribute).
Both labels are optional.

The magic string and UUID location are intentionally on the same offset
as LUKS v1, so even unpatched blkid now recognizes LUKS2.

Anyway, the code should not parse other versions of the header, so we now
explicitly check for header version and support only version 1 and 2.

Signed-off-by: Milan Broz <gmazyland@gmail.com>
2017-10-23 16:31:46 +02:00
..
docs libblkid: allow to hide already detected signatures 2017-06-28 10:28:41 +02:00
samples build-sys: fix library order when linking 2017-06-01 03:16:48 +02:00
src blkid: Add support for LUKS2 and new LABEL attributes. 2017-10-23 16:31:46 +02:00
blkid.pc.in build-sys: use top-level directory for libblkid rather than shlibs/blkid 2011-06-09 22:04:24 +02:00
COPYING COPYING: fix grammar of referring phrase, and indicate location better 2013-10-08 15:38:39 +02:00
libblkid.3 docs: replace FTP by HTTPS in kernel.org URLs 2016-12-19 11:22:26 +01:00
Makemodule.am build-sys: expand paths at make time 2012-08-15 02:06:53 +02:00