mirror of
https://github.com/ipxe/ipxe
synced 2025-12-26 09:32:33 +03:00
[image] Add concept of trusted images
Trusted images may always be executed. Untrusted images may be executed only if the current image trust requirement allows untrusted images. Images can be marked as trusted using image_trust(), and marked as untrusted using image_untrust(). The current image trust requirement can be changed using image_set_trust(). It is possible to make the change permanent, in which case any future attempts to change the image trust requirement will fail. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -140,6 +140,8 @@ void imgstat ( struct image *image ) {
|
||||
printf ( "%s : %zd bytes", image->name, image->len );
|
||||
if ( image->type )
|
||||
printf ( " [%s]", image->type->name );
|
||||
if ( image->flags & IMAGE_TRUSTED )
|
||||
printf ( " [TRUSTED]" );
|
||||
if ( image->flags & IMAGE_SELECTED )
|
||||
printf ( " [SELECTED]" );
|
||||
if ( image->cmdline )
|
||||
|
||||
Reference in New Issue
Block a user