|
OpenCore
1.0.5
OpenCore Bootloader
|
#include <Uefi.h>#include <IndustryStandard/AppleCsrConfig.h>#include <Guid/AppleVariable.h>#include <Library/OcVariableLib.h>#include <Library/UefiRuntimeServicesTableLib.h>Go to the source code of this file.
Functions | |
| EFI_STATUS | OcGetSip (OUT UINT32 *CsrActiveConfig, OUT UINT32 *Attributes OPTIONAL) |
| EFI_STATUS | OcSetSip (IN UINT32 *CsrActiveConfig, IN UINT32 Attributes) |
| BOOLEAN | OcIsSipEnabled (IN EFI_STATUS GetStatus, IN UINT32 CsrActiveConfig) |
| EFI_STATUS | OcToggleSip (IN UINT32 CsrActiveConfig) |
Manage Apple SIP variable csr-active-config.
Copyright (C) 2021-2022, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause
Definition in file Sip.c.
| EFI_STATUS OcGetSip | ( | OUT UINT32 * | CsrActiveConfig, |
| OUT UINT32 *Attributes | OPTIONAL ) |
Get current SIP setting.
| [out] | CsrActiveConfig | Returned csr-active-config variable; uninitialised if variable not found, or other error. |
| [out] | Attributes | If not NULL, a pointer to the memory location to return the attributes bitmask for the variable; uninitialised if variable not found, or other error. |
| EFI_SUCCESS,EFI_NOT_FOUND,or | other error returned by called code. |
| BOOLEAN OcIsSipEnabled | ( | IN EFI_STATUS | GetStatus, |
| IN UINT32 | CsrActiveConfig ) |
Is SIP enabled?
| [in] | GetStatus | Return status from previous OcGetSip or gRT->GetVariable call. |
| [in] | CsrActiveConfig | csr-active-config value from previous OcGetSip or gRT->GetVariable call. This value is never used unless GetStatus is EFI_SUCCESS. |
| TRUE | if SIP should be considered enabled based on the passed values. |
| EFI_STATUS OcSetSip | ( | IN UINT32 * | CsrActiveConfig, |
| IN UINT32 | Attributes ) |