OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
CsrUtil.c File Reference
#include <Uefi.h>
#include <Library/OcDebugLogLib.h>
#include <Library/OcMiscLib.h>
#include <Library/OcVariableLib.h>
#include <Library/UefiApplicationEntryPoint.h>
#include <Library/UefiBootServicesTableLib.h>
#include <Library/UefiLib.h>
#include <IndustryStandard/AppleCsrConfig.h>
#include <Guid/AppleVariable.h>

Go to the source code of this file.

Macros

#define MAX_FIRST_ARG_LEN   15
 

Functions

STATIC EFI_STATUS SplitArguments (UINTN *Argc, CHAR16 ***Argv)
 
STATIC VOID PrintUsage (VOID)
 
EFI_STATUS EFIAPI UefiMain (IN EFI_HANDLE ImageHandle, IN EFI_SYSTEM_TABLE *SystemTable)
 

Detailed Description

Basic reimplementation of SIP aspects of csrutil.

Copyright (c) 2021, Mike Beaton. All rights reserved.
SPDX-License-Identifier: BSD-3-Clause

Definition in file CsrUtil.c.

Macro Definition Documentation

◆ MAX_FIRST_ARG_LEN

#define MAX_FIRST_ARG_LEN   15

Definition at line 20 of file CsrUtil.c.

Function Documentation

◆ PrintUsage()

STATIC VOID PrintUsage ( VOID )

Definition at line 78 of file CsrUtil.c.

◆ SplitArguments()

STATIC EFI_STATUS SplitArguments ( UINTN * Argc,
CHAR16 *** Argv )

Definition at line 24 of file CsrUtil.c.

◆ UefiMain()

EFI_STATUS EFIAPI UefiMain ( IN EFI_HANDLE ImageHandle,
IN EFI_SYSTEM_TABLE * SystemTable )

Definition at line 101 of file CsrUtil.c.