grub/util
Vladimir Serbinenko a251b71915 LUKS and GELI support.
* Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
	grub-core/disk/luks.c, grub-core/disk/geli.c,
	grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
	grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
	grub-core/lib/arg.c.
	(libgrubmods.a): Remove gcrypts cflags and cppflags.
	Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
	grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
	grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
	(grub-bin2h): Add libgcry.a.
	(grub-mkimage): Likewise.
	(grub-mkrelpath): Likewise.
	(grub-script-check): Likewise.
	(grub-editenv): Likewise.
	(grub-mkpasswd-pbkdf2): Likewise.
	(grub-pe2elf): Likewise.
	(grub-fstest): Likewise.
	(grub-mkfont): Likewise.
	(grub-mkdevicemap): Likewise.
	(grub-probe): Likewise.
	(grub-ofpath): Likewise.
	(grub-mklayout): Likewise.
	(example_unit_test): Likewise.
	(grub-menulst2cfg): Likewise.
	* autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
	* grub-core/Makefile.core.def (cryptodisk): New module.
	(luks): Likewise.
	(geli): Likewise.
	* grub-core/disk/AFSplitter.c: New file.
	* grub-core/disk/cryptodisk.c: Likewise.
	* grub-core/disk/geli.c: Likewise.
	* grub-core/disk/luks.c: Likewise.
	* grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
	grub_util_is_lvm.
	(grub_util_get_dm_abstraction): New function.
	(grub_util_follow_gpart_up): Likewise.
	(grub_util_get_geom_abstraction): Likewise.
	(grub_util_get_dev_abstraction): Use new functions.
	(grub_util_pull_device): Pull GELI and LUKS.
	(grub_util_get_grub_dev): Handle LUKS and GELI.
	* grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
	(grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
	(follow_geom_up): Removed.
	(grub_util_fd_seek): New function.
	(open_device): Use grub_util_fd_seek.
	(nread): Rename to ..
	(grub_util_fd_read): ... this. All users updated.
	* grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
	(grub_crypto_cbc_decrypt): Likewise.
	(grub_crypto_hmac_write): Likewise.
	(grub_crypto_hmac_buffer): Likewise.
	(grub_password_get): Extend to util.
	* include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
	New member modname.
	(gcry_md_spec) [GRUB_UTIL]: Likewise.
	* include/grub/cryptodisk.h: New file.
	* include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
	* include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
	LUKS and GELI.
	(grub_util_follow_gpart_up): New proto.
	* include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
	(grub_util_fd_read): Likewise.
	(grub_cryptodisk_cheat_mount): Likewise.
	(grub_util_cryptodisk_print_uuid): Likewise.
	(grub_util_get_fd_sectors): Likewise.
	* util/grub-fstest.c (mount_crypt): New var.
	(fstest): Mount crypto if requested.
	(options): New option -C.
	(argp_parser): Parse -C.
	(main): Init and fini gcry.
	* util/grub-install.in: Support cryptodisk install.
	* util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
	* util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
	cryptodisk.
	(prepare_grub_to_access_device): Likewise.
	* util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
	* util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
	(probe_cryptodisk_uuid): New function.
	(probe_abstraction): Likewise.
	(probe): Use new functions.
	* util/import_gcry.py: Create Makefile.utilgcry.def.
	Add modname member.

	Also-By: Michael Gorven <michael@gorven.za.net>

	Also-By: Clemens Fruhwirth <clemens@endorphin.org>
2011-07-07 23:52:58 +02:00
..
bash-completion.d merge with mainline 2010-09-19 18:54:45 +05:30
grub.d Use @PACKAGE@ instead of hardcoded name when sourcing grub-mkconfig_lib. 2011-07-02 21:22:19 +02:00
i386/efi Merge mainline into install 2010-09-15 14:46:53 +02:00
ieee1275 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version 2011-06-27 12:16:00 +02:00
powerpc/ieee1275 Make mktemp invocations portable. 2010-10-18 22:50:01 +02:00
bin2h.c * util/bin2h.c (main): Fix spelling error in generated output. 2010-11-02 22:51:51 +00:00
deviceiter.c 2011-06-16 Robert Millan <rmh@gnu.org> 2011-06-16 14:33:11 +02:00
devicemap.c * util/sparc64/ieee1275/misc.c: New file. 2009-04-22 09:57:39 +00:00
grub-editenv.c * util/grub-editenv.c: Update strings to avoid warnings when generating 2010-09-21 11:17:54 +02:00
grub-fstest.c LUKS and GELI support. 2011-07-07 23:52:58 +02:00
grub-install.in LUKS and GELI support. 2011-07-07 23:52:58 +02:00
grub-kbdcomp.in * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables. 2011-01-10 23:41:58 +01:00
grub-macho2img.c * grub-core/lib/LzFind.c: Add missing include. 2010-09-24 09:19:57 +02:00
grub-menulst2cfg.c * util/grub-menulst2cfg.c: Add missing include of misc.h. 2011-01-10 23:57:49 +01:00
grub-mkconfig.in LUKS and GELI support. 2011-07-07 23:52:58 +02:00
grub-mkconfig_lib.in LUKS and GELI support. 2011-07-07 23:52:58 +02:00
grub-mkdevicemap.c Merge mainline into bidi 2010-07-02 19:35:07 +02:00
grub-mkfont.c * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data 2011-01-12 12:49:16 +01:00
grub-mkimage.c merge mainline into net 2011-07-06 01:35:41 +02:00
grub-mkimagexx.c Fix LTOFF relocation to functions (needed for trampolines) 2011-05-08 17:07:40 +02:00
grub-mklayout.c * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate 2011-01-11 09:08:57 -06:00
grub-mknetdir.in mknetdir support for EFI 2011-06-26 22:47:05 +02:00
grub-mkpasswd-pbkdf2.c LUKS and GELI support. 2011-07-07 23:52:58 +02:00
grub-mkrelpath.c * grub-core/lib/LzFind.c: Add missing include. 2010-09-24 09:19:57 +02:00
grub-mkrescue.in * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when 2011-06-27 09:06:15 +02:00
grub-pe2elf.c Handle module_license on windows. 2011-05-14 17:47:59 +02:00
grub-probe.c Integrate geli into autoconfiguration system 2011-04-25 14:52:07 +02:00
grub-reboot.in Add new --boot-directory option to replace --root-directory 2010-09-08 17:25:29 +02:00
grub-script-check.c print line number on error 2010-12-03 08:55:57 +05:30
grub-set-default.in Add new --boot-directory option to replace --root-directory 2010-09-08 17:25:29 +02:00
grub-setup.c automatic raid members addition 2011-04-22 13:55:30 +02:00
import_gcry.py fix bug caused by import_gcry modifications 2011-04-23 02:01:39 +02:00
import_unicode.py * util/import_unicode.py: Remove unnecessary imports. 2010-07-17 19:27:18 +01:00
lvm.c automake commit without merge history 2010-05-06 11:34:04 +05:30
misc.c merge with mainline 2010-08-19 16:54:00 +05:30
resolve.c * grub-core/lib/LzFind.c: Add missing include. 2010-09-24 09:19:57 +02:00
update-grub_lib.in Use @PACKAGE@ instead of hardcoded name when sourcing grub-mkconfig_lib. 2011-07-02 21:22:19 +02:00