github.com/linuxboot/fiano@v1.2.0/pkg/intel/metadata/bg/config.go (about)

     1  // Copyright 2017-2023 the LinuxBoot Authors. All rights reserved
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package bg
     6  
     7  var (
     8  	// StrictOrderCheck defines if elements order checks should be performed.
     9  	// For example in the Boot Policy Manifest elements could be in a wrong
    10  	// order. And we still can parse it, but in this way `*Offset` methods
    11  	// could be confusing, since they will show the offset as they will
    12  	// be written (not as they were parsed).
    13  	//
    14  	// We require a strict order because it is explicitly required
    15  	// in the documentation #575623:
    16  	//
    17  	// > The order of the elements and the order of the fields within each
    18  	// > element are architectural and must be followed.
    19  	StrictOrderCheck = true
    20  )