diff options
author | Geoff Levand <geoff@infradead.org> | 2018-08-10 17:29:15 +0000 |
---|---|---|
committer | Samuel Mendoza-Jonas <sam@mendozajonas.com> | 2018-08-14 11:12:06 +1000 |
commit | 8d8bafa6cf7d903200b2284298211be835bdf84e (patch) | |
tree | 681256fc85288f7294eadda6b39e7969802edc5c /lib/efi/efivar.c | |
parent | 15751f10a1368f56ca10b2bc84011253216103aa (diff) | |
download | talos-petitboot-8d8bafa6cf7d903200b2284298211be835bdf84e.tar.gz talos-petitboot-8d8bafa6cf7d903200b2284298211be835bdf84e.zip |
lib/efi: Move magic to implementation
efi_check_mount now does a magic number check by default, so
move the magic number related code from efivar.h to efivar.c.
Signed-off-by: Geoff Levand <geoff@infradead.org>
Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'lib/efi/efivar.c')
-rw-r--r-- | lib/efi/efivar.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/efi/efivar.c b/lib/efi/efivar.c index f1dd002..37bb6d9 100644 --- a/lib/efi/efivar.c +++ b/lib/efi/efivar.c @@ -24,6 +24,7 @@ #include <string.h> #include <linux/fs.h> +#include <linux/magic.h> #include <sys/ioctl.h> #include <sys/stat.h> #include <sys/statfs.h> @@ -32,6 +33,10 @@ #include "log/log.h" #include "talloc/talloc.h" +#ifndef EFIVARFS_MAGIC +#define EFIVARFS_MAGIC 0xde5e81e4 +#endif + void efi_init_mount(struct efi_mount *efi_mount, const char *path, const char *guid) { |