2010-08-26 22:22:58 +04:00
|
|
|
include $(top_srcdir)/config/Rules.am
|
|
|
|
|
2017-08-10 01:31:08 +03:00
|
|
|
VPATH = \
|
|
|
|
$(top_srcdir)/module/icp \
|
|
|
|
$(top_srcdir)/module/zcommon \
|
|
|
|
$(top_srcdir)/lib/libzfs
|
|
|
|
|
2018-01-10 21:49:27 +03:00
|
|
|
# Suppress unused but set variable warnings often due to ASSERTs
|
|
|
|
AM_CFLAGS += $(NO_UNUSED_BUT_SET_VARIABLE)
|
|
|
|
|
2014-06-07 03:23:22 +04:00
|
|
|
libzfs_pcdir = $(datarootdir)/pkgconfig
|
2014-06-10 01:55:31 +04:00
|
|
|
libzfs_pc_DATA = libzfs.pc libzfs_core.pc
|
2014-06-07 03:23:22 +04:00
|
|
|
|
2010-08-26 22:22:58 +04:00
|
|
|
DEFAULT_INCLUDES += \
|
2010-09-05 00:26:23 +04:00
|
|
|
-I$(top_srcdir)/include \
|
2017-08-10 01:31:08 +03:00
|
|
|
-I$(top_srcdir)/module/icp/include \
|
2010-09-05 00:26:23 +04:00
|
|
|
-I$(top_srcdir)/lib/libspl/include
|
2010-08-26 22:22:58 +04:00
|
|
|
|
|
|
|
lib_LTLIBRARIES = libzfs.la
|
|
|
|
|
2014-06-10 01:55:31 +04:00
|
|
|
USER_C = \
|
|
|
|
libzfs_changelist.c \
|
|
|
|
libzfs_config.c \
|
Native Encryption for ZFS on Linux
This change incorporates three major pieces:
The first change is a keystore that manages wrapping
and encryption keys for encrypted datasets. These
commands mostly involve manipulating the new
DSL Crypto Key ZAP Objects that live in the MOS. Each
encrypted dataset has its own DSL Crypto Key that is
protected with a user's key. This level of indirection
allows users to change their keys without re-encrypting
their entire datasets. The change implements the new
subcommands "zfs load-key", "zfs unload-key" and
"zfs change-key" which allow the user to manage their
encryption keys and settings. In addition, several new
flags and properties have been added to allow dataset
creation and to make mounting and unmounting more
convenient.
The second piece of this patch provides the ability to
encrypt, decyrpt, and authenticate protected datasets.
Each object set maintains a Merkel tree of Message
Authentication Codes that protect the lower layers,
similarly to how checksums are maintained. This part
impacts the zio layer, which handles the actual
encryption and generation of MACs, as well as the ARC
and DMU, which need to be able to handle encrypted
buffers and protected data.
The last addition is the ability to do raw, encrypted
sends and receives. The idea here is to send raw
encrypted and compressed data and receive it exactly
as is on a backup system. This means that the dataset
on the receiving system is protected using the same
user key that is in use on the sending side. By doing
so, datasets can be efficiently backed up to an
untrusted system without fear of data being
compromised.
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Jorgen Lundman <lundman@lundman.net>
Signed-off-by: Tom Caputi <tcaputi@datto.com>
Closes #494
Closes #5769
2017-08-14 20:36:48 +03:00
|
|
|
libzfs_crypto.c \
|
2014-06-10 01:55:31 +04:00
|
|
|
libzfs_dataset.c \
|
|
|
|
libzfs_diff.c \
|
|
|
|
libzfs_import.c \
|
|
|
|
libzfs_iter.c \
|
|
|
|
libzfs_mount.c \
|
|
|
|
libzfs_pool.c \
|
|
|
|
libzfs_sendrecv.c \
|
|
|
|
libzfs_status.c \
|
|
|
|
libzfs_util.c
|
|
|
|
|
2017-08-10 01:31:08 +03:00
|
|
|
KERNEL_C = \
|
2017-09-12 23:15:11 +03:00
|
|
|
algs/sha2/sha2.c \
|
2017-08-10 01:31:08 +03:00
|
|
|
zfeature_common.c \
|
|
|
|
zfs_comutil.c \
|
|
|
|
zfs_deleg.c \
|
|
|
|
zfs_fletcher.c \
|
|
|
|
zfs_fletcher_aarch64_neon.c \
|
|
|
|
zfs_fletcher_avx512.c \
|
|
|
|
zfs_fletcher_intel.c \
|
|
|
|
zfs_fletcher_sse.c \
|
|
|
|
zfs_fletcher_superscalar.c \
|
|
|
|
zfs_fletcher_superscalar4.c \
|
|
|
|
zfs_namecheck.c \
|
|
|
|
zfs_prop.c \
|
|
|
|
zfs_uio.c \
|
|
|
|
zpool_prop.c \
|
|
|
|
zprop_common.c
|
2014-06-10 01:55:31 +04:00
|
|
|
|
|
|
|
nodist_libzfs_la_SOURCES = \
|
|
|
|
$(USER_C) \
|
|
|
|
$(KERNEL_C)
|
2011-07-05 23:12:08 +04:00
|
|
|
|
2012-01-01 03:30:52 +04:00
|
|
|
libzfs_la_LIBADD = \
|
|
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
2017-08-10 01:31:08 +03:00
|
|
|
$(top_builddir)/lib/libshare/libshare.la \
|
|
|
|
$(top_builddir)/lib/libuutil/libuutil.la \
|
2018-11-05 22:22:33 +03:00
|
|
|
$(top_builddir)/lib/libzfs_core/libzfs_core.la \
|
|
|
|
$(top_builddir)/lib/libzutil/libzutil.la
|
2012-01-01 03:30:52 +04:00
|
|
|
|
2018-11-05 22:22:33 +03:00
|
|
|
libzfs_la_LIBADD += -lm $(LIBSSL)
|
2013-09-26 21:44:10 +04:00
|
|
|
libzfs_la_LDFLAGS = -version-info 2:0:0
|
2014-06-10 01:55:31 +04:00
|
|
|
|
|
|
|
EXTRA_DIST = $(libzfs_pc_DATA) $(USER_C)
|
2019-01-08 20:29:34 +03:00
|
|
|
|
|
|
|
# Licensing data
|
|
|
|
EXTRA_DIST += THIRDPARTYLICENSE.openssl THIRDPARTYLICENSE.openssl.descrip
|