Hi,
  StarImage() will not start image if the image is security violation, and 
return EFI_SECURITY_VIOLATION.

  In EDKII MdeModulePkg\Core\Dxe\Image\Image.c, CoreStartImage() function will 
check Image LoadImageStatus. If it is error status, and directly return it.

Thanks
Liming
From: Thomas Rognon [mailto:tcrog...@gmail.com]
Sent: Wednesday, May 22, 2013 3:38 AM
To: edk2-devel@lists.sourceforge.net
Subject: [edk2] loadpcirom EFI_SECURITY_VIOLATION

I made a test driver called TestDxe.efi that just prints "hello world" and used 
the efirom tool to make a rom image from the efi image.  In the shell I 
executed "loadpcirom TestDxe.rom" and it printed "LoadPciRom: Load image #0 
error - Security Violation".

I looked through the shell code and it loops through all the images in the rom 
and calls LoadImage and StartImage.  The only place I can see that it would 
return EFI_SECURITY_VIOLATION is in LoadImage.  However, doing "load 
TestDxe.efi" works just fine.

What am I not understanding?

Thomas Rognon
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
edk2-devel mailing list
edk2-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-devel

Reply via email to