This is an old revision of the document!


Set image trust requirement

Synopsis

  imgtrust [--allow] [--permanent]

Examples

Require trusted images

  imgtrust

Allow untrusted images

  imgtrust --allow

Permanently require trusted images

  imgtrust --permanent

Description

Require the use of trusted images. When trusted images are required, any attempts to execute an untrusted image will fail. All images are untrusted by default. To become trusted, an image must be verified using the imgverify command.

If the –allow option is specified then the trusted images will no longer be required, and untrusted images may be executed.

If the –permanent option is specified, then the image trust requirement will be made permanent. Any future attempts to change the image trust requirement will fail. For example:

  iPXE> imgtrust               # Require trusted images
  iPXE> imgtrust --allow       # Allow untrusted images
  
  iPXE> imgtrust --permanent   # Permanently require trusted images
  iPXE> imgtrust --allow       # Try to allow untrusted images
  Could not set image trust requirement: Permission denied (http://ipxe.org/0200823c)

Command status

Success The image trust requirement was set successfully
Failure The image trust requirement was not set successfully

See also

Build options

This command is available only when the build option IMAGE_TRUST_CMD is enabled.

Notes

The default configuration is always to allow untrusted images. To require the use of trusted images, you must use an embedded script that includes the imgtrust command. For example:

  #!ipxe
  
  imgtrust --permanent
  dhcp
  imgfetch --name vmlinuz ${filename}
  imgverify vmlinuz ${filename}.sig
  imgexec vmlinuz

There is no way to use trusted images without using an embedded script.1)

The imgtrust command only prevents the direct execution of untrusted images by iPXE. An untrusted image may still be used as, for example, the initrd for a trusted kernel image. You can use the imgverify command to explicitly verify any such additional images.

1)
The embedded script is required because there is no standard way to obtain the signature for an image corresponding to the DHCP filename.
cmd/imgtrust.1332426681.txt.gz · Last modified: 2012/03/22 14:31 by mcb30
Recent changes RSS feed CC Attribution-Share Alike 4.0 International Driven by DokuWiki
All uses of this content must include an attribution to the iPXE project and the URL https://ipxe.org
References to "iPXE" may not be altered or removed.