Add sample use case for IFR security op-code.
authorrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 Mar 2010 06:25:10 +0000 (06:25 +0000)
committerrsun3 <rsun3@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 16 Mar 2010 06:25:10 +0000 (06:25 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk@10255 6f19259b-4bc3-4df7-8a09-765794883524

edk2/MdeModulePkg/Universal/DriverSampleDxe/NVDataStruc.h
edk2/MdeModulePkg/Universal/DriverSampleDxe/Vfr.vfr
edk2/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni

index 40231be..f919b3a 100644 (file)
@@ -38,6 +38,9 @@ Revision History:
     0xb3f56470, 0x6141, 0x4621, {0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8} \\r
   }\r
 \r
     0xb3f56470, 0x6141, 0x4621, {0x8f, 0x19, 0x70, 0x4e, 0x57, 0x7a, 0xa9, 0xe8} \\r
   }\r
 \r
+#define EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID \\r
+  { 0x85b75607, 0xf7ce, 0x471e, { 0xb7, 0xe4, 0x2a, 0xea, 0x5f, 0x72, 0x32, 0xee } }\r
+\r
 #define CONFIGURATION_VARSTORE_ID    0x1234\r
 \r
 #pragma pack(1)\r
 #define CONFIGURATION_VARSTORE_ID    0x1234\r
 \r
 #pragma pack(1)\r
index 7b18c3c..0f88cde 100644 (file)
@@ -424,6 +424,15 @@ formset
               maxsize  = 20,\r
     endpassword;\r
 \r
               maxsize  = 20,\r
     endpassword;\r
 \r
+    //\r
+    // Sample use case for IFR Security op-code\r
+    //\r
+    grayoutif NOT security (EFI_USER_INFO_ACCESS_SETUP_ADMIN_GUID);\r
+      text\r
+        help = STRING_TOKEN(STR_TEXT_SECRUITY_TEST_HELP),\r
+        text = STRING_TOKEN(STR_TEXT_SECRUITY_TEST_TEXT);\r
+    endif;\r
+    \r
     goto 2,\r
       prompt = STRING_TOKEN(STR_GOTO_FORM2), //SecondSetupPage  // this too has no end-op and basically it's a jump to a form ONLY\r
       help   = STRING_TOKEN(STR_GOTO_HELP);\r
     goto 2,\r
       prompt = STRING_TOKEN(STR_GOTO_FORM2), //SecondSetupPage  // this too has no end-op and basically it's a jump to a form ONLY\r
       help   = STRING_TOKEN(STR_GOTO_HELP);\r
index 2cb502d..198a481 100644 (file)
Binary files a/edk2/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni and b/edk2/MdeModulePkg/Universal/DriverSampleDxe/VfrStrings.uni differ