mirror of
https://github.com/ipxe/ipxe
synced 2026-01-03 02:13:23 +03:00
[PXEXT] Add PXENV_FILE_EXEC call to PXE extensions API.
This allows pxelinux to execute arbitrary gPXE commands. This is remarkably unsafe (not least because some of the commands will assume full ownership of memory and do nasty things like edit the e820 map underneath the calling pxelinux), but it does allow access to the "sanboot" command.
This commit is contained in:
@@ -1684,6 +1684,28 @@ extern PXENV_EXIT_t pxenv_get_file_size ( struct s_PXENV_GET_FILE_SIZE
|
||||
|
||||
/** @} */ /* pxenv_get_file_size */
|
||||
|
||||
/** @defgroup pxenv_file_exec PXENV_FILE_EXEC
|
||||
*
|
||||
* FILE EXEC
|
||||
*
|
||||
* @{
|
||||
*/
|
||||
|
||||
/** PXE API function code for pxenv_file_exec() */
|
||||
#define PXENV_FILE_EXEC 0x00e5
|
||||
|
||||
/** Parameter block for pxenv_file_exec() */
|
||||
struct s_PXENV_FILE_EXEC {
|
||||
PXENV_STATUS_t Status; /**< PXE status code */
|
||||
SEGOFF16_t Command; /**< Command to execute */
|
||||
} PACKED;
|
||||
|
||||
typedef struct s_PXENV_FILE_EXEC PXENV_FILE_EXEC_t;
|
||||
|
||||
extern PXENV_EXIT_t pxenv_file_exec ( struct s_PXENV_FILE_EXEC *file_exec );
|
||||
|
||||
/** @} */ /* pxenv_file_exec */
|
||||
|
||||
/** @} */ /* pxe_file_api */
|
||||
|
||||
/** @defgroup pxe_loader_api PXE Loader API
|
||||
|
||||
Reference in New Issue
Block a user