mirror of
https://git.proxmox.com/git/grub2
synced 2025-08-15 00:22:39 +00:00
fs/hfs: Disable under lockdown
HFS has issues such as infinite mutual recursion that are simply too complex to fix for such a legacy format. So simply do not permit it to be loaded under lockdown. Signed-off-by: Daniel Axtens <dja@axtens.net> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
parent
2ca0e5dbcd
commit
1c15848838
@ -30,6 +30,7 @@
|
|||||||
#include <grub/hfs.h>
|
#include <grub/hfs.h>
|
||||||
#include <grub/i18n.h>
|
#include <grub/i18n.h>
|
||||||
#include <grub/fshelp.h>
|
#include <grub/fshelp.h>
|
||||||
|
#include <grub/lockdown.h>
|
||||||
|
|
||||||
GRUB_MOD_LICENSE ("GPLv3+");
|
GRUB_MOD_LICENSE ("GPLv3+");
|
||||||
|
|
||||||
@ -1433,11 +1434,13 @@ static struct grub_fs grub_hfs_fs =
|
|||||||
|
|
||||||
GRUB_MOD_INIT(hfs)
|
GRUB_MOD_INIT(hfs)
|
||||||
{
|
{
|
||||||
grub_fs_register (&grub_hfs_fs);
|
if (!grub_is_lockdown ())
|
||||||
|
grub_fs_register (&grub_hfs_fs);
|
||||||
my_mod = mod;
|
my_mod = mod;
|
||||||
}
|
}
|
||||||
|
|
||||||
GRUB_MOD_FINI(hfs)
|
GRUB_MOD_FINI(hfs)
|
||||||
{
|
{
|
||||||
grub_fs_unregister (&grub_hfs_fs);
|
if (!grub_is_lockdown())
|
||||||
|
grub_fs_unregister (&grub_hfs_fs);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user