-
Notifications
You must be signed in to change notification settings - Fork 103
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libefivar: get rid of our variadic mess in efi_set_variable()
Sometimes the linked output wasn't correctly choosing the right functions, and we'd get undefined behavior and the result was random file modes on efi variables. Instead, require the mode, and provide a compatibility symbol with the older version that will use a safe (if mildly annoying) mode of (0600 & ~umask). Signed-off-by: Peter Jones <pjones@redhat.com>
- Loading branch information
Showing
10 changed files
with
158 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
libefiboot.so.0 { | ||
global: efi_generate_file_device_path; | ||
efi_generate_file_device_path_from_esp; | ||
efi_generate_ipv4_device_path; | ||
efi_va_generate_file_device_path_from_esp; | ||
efi_loadopt_args_as_ucs2; | ||
efi_loadopt_args_as_utf8; | ||
efi_loadopt_args_from_file; | ||
efi_loadopt_attr_clear; | ||
efi_loadopt_attr_set; | ||
efi_loadopt_attrs; | ||
efi_loadopt_create; | ||
efi_loadopt_desc; | ||
efi_loadopt_is_valid; | ||
efi_loadopt_optional_data; | ||
efi_loadopt_optional_data_size; | ||
efi_loadopt_path; | ||
efi_loadopt_pathlen; | ||
local: *; | ||
}; | ||
|
||
LIBEFIBOOT_0.0 { | ||
} libefiboot.so.0; | ||
|
||
LIBEFIBOOT_0.24 { | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
libefivar.so.0 { | ||
global: efi_append_variable; | ||
efi_chmod_variable; | ||
efi_del_variable; | ||
efi_get_next_variable_name; | ||
efi_get_variable; | ||
efi_get_variable_attributes; | ||
efi_get_variable_size; | ||
efi_guid_is_empty; | ||
efi_guid_to_id_guid; | ||
efi_guid_to_name; | ||
efi_guid_to_str; | ||
efi_guid_to_symbol; | ||
efi_id_guid_to_guid; | ||
efi_name_to_guid; | ||
_efi_set_variable; | ||
_efi_set_variable_variadic; | ||
efi_str_to_guid; | ||
efi_variable_export; | ||
efi_variable_free; | ||
efi_variable_get_attributes; | ||
efi_variable_get_data; | ||
efi_variable_get_guid; | ||
efi_variable_get_name; | ||
efi_variable_import; | ||
efi_variable_realize; | ||
efi_variable_set_attributes; | ||
efi_variable_set_data; | ||
efi_variable_set_guid; | ||
efi_variable_set_name; | ||
efi_variables_supported; | ||
efi_well_known_guids; | ||
efi_well_known_guids_end; | ||
efidp_append_instance; | ||
efidp_append_node; | ||
efidp_append_path; | ||
efidp_duplicate_path; | ||
efidp_format_device_path; | ||
efidp_make_acpi_hid; | ||
efidp_make_acpi_hid_ex; | ||
efidp_make_atapi; | ||
efidp_make_edd10; | ||
efidp_make_file; | ||
efidp_make_generic; | ||
efidp_make_hd; | ||
efidp_make_ipv4; | ||
efidp_make_mac_addr; | ||
efidp_make_nvme; | ||
efidp_make_pci; | ||
efidp_make_sas; | ||
efidp_make_sata; | ||
efidp_make_scsi; | ||
efidp_make_vendor; | ||
efidp_parse_device_node; | ||
efidp_parse_device_path; | ||
efidp_set_node_data; | ||
|
||
efi_guid_empty; | ||
efi_guid_global; | ||
efi_guid_lenovo; | ||
efi_guid_lenovo_2; | ||
efi_guid_lenovo_boot_menu; | ||
efi_guid_lenovo_diag; | ||
efi_guid_lenovo_diag_splash; | ||
efi_guid_lenovo_me_config; | ||
efi_guid_lenovo_msg; | ||
efi_guid_lenovo_rescue; | ||
efi_guid_lenovo_setup; | ||
efi_guid_lenovo_startup_interrupt; | ||
efi_guid_microsoft; | ||
efi_guid_pkcs7_cert; | ||
efi_guid_redhat; | ||
efi_guid_redhat_2; | ||
efi_guid_rsa2048; | ||
efi_guid_rsa2048_sha1; | ||
efi_guid_rsa2048_sha256; | ||
efi_guid_rsa2048_sha256_cert; | ||
efi_guid_security; | ||
efi_guid_sha1; | ||
efi_guid_sha224; | ||
efi_guid_sha256; | ||
efi_guid_sha384; | ||
efi_guid_sha512; | ||
efi_guid_shell; | ||
efi_guid_shim; | ||
efi_guid_x509_cert; | ||
efi_guid_x509_sha256; | ||
efi_guid_x509_sha384; | ||
efi_guid_x509_sha512; | ||
efi_guid_zero; | ||
local: *; | ||
}; | ||
|
||
LIBEFIVAR_0.0 { | ||
} libefivar.so.0; | ||
|
||
LIBEFIVAR_0.24 { | ||
global: efi_set_variable; | ||
} LIBEFIVAR_0.0; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters