[build] Mark GDB stub as forbidden for UEFI Secure Boot

Enabling the GDB debugger functionality would provide an immediate and
trivial Secure Boot exploit.  Mark all GDB-related files as explicitly
forbidden for UEFI Secure Boot.

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2026-01-28 13:20:38 +00:00
parent 03a906a9f3
commit 4db03054d5
13 changed files with 17 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
FILE_SECBOOT ( FORBIDDEN );
/* /*
* Interrupt handlers for GDB stub * Interrupt handlers for GDB stub
*/ */

View File

@@ -10,6 +10,8 @@
* *
*/ */
FILE_SECBOOT ( FORBIDDEN );
#include <stdint.h> #include <stdint.h>
typedef unsigned long gdbreg_t; typedef unsigned long gdbreg_t;

View File

@@ -23,6 +23,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -22,6 +22,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
/** @file /** @file
* *

View File

@@ -10,6 +10,8 @@
* *
*/ */
FILE_SECBOOT ( FORBIDDEN );
#include <stdint.h> #include <stdint.h>
typedef unsigned long gdbreg_t; typedef unsigned long gdbreg_t;

View File

@@ -22,6 +22,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
#include <stddef.h> #include <stddef.h>
#include <stdio.h> #include <stdio.h>

View File

@@ -22,6 +22,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
/** /**
* @file * @file

View File

@@ -22,6 +22,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
#include <stdio.h> #include <stdio.h>
#include <string.h> #include <string.h>

View File

@@ -22,6 +22,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
#include <stdio.h> #include <stdio.h>
#include <errno.h> #include <errno.h>

View File

@@ -10,6 +10,8 @@
* *
*/ */
FILE_SECBOOT ( FORBIDDEN );
#include <stdint.h> #include <stdint.h>
typedef unsigned long gdbreg_t; typedef unsigned long gdbreg_t;

View File

@@ -8,6 +8,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
struct gdb_transport; struct gdb_transport;

View File

@@ -8,6 +8,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
#include <stdint.h> #include <stdint.h>
#include <ipxe/tables.h> #include <ipxe/tables.h>

View File

@@ -8,6 +8,7 @@
*/ */
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL ); FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
FILE_SECBOOT ( FORBIDDEN );
struct sockaddr_in; struct sockaddr_in;
struct gdb_transport; struct gdb_transport;