mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-24 10:41:43 +00:00
It seems that bumping the version of golang and golangci-lint new format changes are required. Signed-off-by: Fabiano Fidêncio <fabiano.fidencio@intel.com>
18 lines
354 B
Go
18 lines
354 B
Go
// Copyright (c) 2021 IBM
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
package virtcontainers
|
|
|
|
import "os"
|
|
|
|
// Returns pefProtection if the firmware directory exists
|
|
func availableGuestProtection() (guestProtection, error) {
|
|
|
|
if d, err := os.Stat(pefSysFirmwareDir); err == nil && d.IsDir() {
|
|
return pefProtection, err
|
|
}
|
|
|
|
return noneProtection, nil
|
|
}
|