mirror_zfs/lib/libzfs
Harald van Dijk 85638aa870 get_key_material: skip passphrase validation when loading keys
The restriction that an encryption key must be at least
MIN_PASSPHRASE_LEN characters long make sense when changing the
encryption key, but not when loading: as this restriction is not
enforced in the libraries, it is possible to bypass zfs change-key's
restrictions and end up with a key that becomes impossible to load with
zfs load-key, for example through pam_zfs_key.

Reviewed-by: Felix Dörre <felix@dogcraft.de>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
Closes #12765
2021-11-30 11:54:06 -08:00
..
os Vdev Properties Feature 2021-11-30 07:46:25 -07:00
.gitignore Clean up lib dependencies 2020-07-10 14:26:00 -07:00
libzfs_changelist.c libzfs: convert to -fvisibility=hidden 2021-06-03 13:17:55 -07:00
libzfs_config.c Use zfs_ioctl with zfs_cmd_t in libzfs 2019-10-23 17:29:43 -07:00
libzfs_crypto.c get_key_material: skip passphrase validation when loading keys 2021-11-30 11:54:06 -08:00
libzfs_dataset.c Disable normalization implicitly when setting "utf8only=off" 2021-10-29 16:59:18 -07:00
libzfs_diff.c libzfs: write_inuse_diffs_one: format strerror() with "%s" 2021-06-04 16:04:37 -07:00
libzfs_impl.h pass handle to do_unmount() 2021-07-15 12:31:00 -06:00
libzfs_import.c libzfs: don't distribute libzfs_impl.h 2021-06-03 13:17:35 -07:00
libzfs_iter.c Skip snapshot in zfs_iter_mounted() 2021-10-20 16:07:19 -07:00
libzfs_mount.c Stop segfaulting on unmount error case 2021-11-30 10:36:36 -08:00
libzfs_pool.c Vdev Properties Feature 2021-11-30 07:46:25 -07:00
libzfs_sendrecv.c Add more explicit warning about dedup being dropped 2021-11-02 15:45:20 -06:00
libzfs_status.c Improvements to the 'compatibility' property 2021-04-12 09:08:56 -07:00
libzfs_util.c Vdev Properties Feature 2021-11-30 07:46:25 -07:00
libzfs.abi Vdev Properties Feature 2021-11-30 07:46:25 -07:00
libzfs.pc.in Spruce up pkg-config files for libzfs/libzfs_core 2020-09-04 11:11:18 -07:00
libzfs.suppr Library ABI tracking with abigail 2020-11-17 09:18:52 -08:00
Makefile.am Simplify and document OpenZFS library dependencies 2021-10-07 11:31:26 -06:00
THIRDPARTYLICENSE.openssl Fix typos in lib/ 2019-09-02 17:53:27 -07:00
THIRDPARTYLICENSE.openssl.descrip Encryption patch follow-up 2017-10-11 16:54:48 -04:00