uefi: Don't leak the application build path into the binary

This can be set at runtime if needed using environment variables.
This commit is contained in:
Mario Limonciello 2019-04-17 14:59:49 +08:00 committed by Mario Limonciello
parent 8fada51919
commit a50b02faf2
2 changed files with 0 additions and 3 deletions

View File

@ -88,8 +88,6 @@ fu_uefi_get_built_app_path (GError **error)
g_autofree gchar *prefix = NULL;
if (fu_uefi_secure_boot_enabled ())
extension = ".signed";
if (g_file_test (EFI_APP_LOCATION_BUILD, G_FILE_TEST_EXISTS))
return g_strdup_printf ("%s%s", EFI_APP_LOCATION_BUILD, extension);
suffix = fu_uefi_bootmgr_get_suffix (error);
if (suffix == NULL)
return NULL;

View File

@ -1,7 +1,6 @@
subdir('efi')
cargs = ['-DG_LOG_DOMAIN="FuPluginUefi"']
cargs += '-DEFI_APP_LOCATION_BUILD="' + app.full_path() + '"'
efi_os_dir = get_option('efi_os_dir')
if efi_os_dir != ''