add new csr bits to Clover GUI to choose

Signed-off-by: SergeySlice <sergey.slice@gmail.com>
This commit is contained in:
SergeySlice 2021-05-04 19:21:42 +03:00
parent fb86ee152a
commit 9c6e5ce05c
4 changed files with 12 additions and 7 deletions

View File

@ -35,6 +35,7 @@
#define CSR_ALLOW_ANY_RECOVERY_OS (1U << 8U)
#define CSR_ALLOW_UNAPPROVED_KEXTS (1U << 9U)
#define CSR_ALLOW_EXECUTABLE_POLICY_OVERRIDE (1U << 10U)
#define CSR_ALLOW_NON_AUTHENTICATED_ROOT (1U << 11U)
#define CSR_VALID_FLAGS (CSR_ALLOW_UNTRUSTED_KEXTS | \
CSR_ALLOW_UNRESTRICTED_FS | \
@ -46,7 +47,8 @@
CSR_ALLOW_DEVICE_CONFIGURATION | \
CSR_ALLOW_ANY_RECOVERY_OS | \
CSR_ALLOW_UNAPPROVED_KEXTS | \
CSR_ALLOW_EXECUTABLE_POLICY_OVERRIDE)
CSR_ALLOW_EXECUTABLE_POLICY_OVERRIDE | \
CSR_ALLOW_NON_AUTHENTICATED_ROOT )
#define CSR_ALWAYS_ENFORCED_FLAGS (CSR_ALLOW_DEVICE_CONFIGURATION | CSR_ALLOW_ANY_RECOVERY_OS)

View File

@ -15535,6 +15535,7 @@
CLANG_WARN__EXIT_TIME_DESTRUCTORS = NO;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.9;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = NO;
@ -15545,7 +15546,6 @@
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREFIX_HEADER = "";
GCC_PREPROCESSOR_DEFINITIONS = (
JIEF_DEBUG,
"JCONST=const",
"___NOT___ENABLE_SECURE_BOOT",
"sprintf=__sprintf_is_disabled__",
@ -15598,7 +15598,7 @@
);
INCLUDED_SOURCE_FILE_NAMES = "";
LLVM_LTO = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@ -15607,7 +15607,7 @@
Platform.h,
);
OTHER_LDFLAGS = "";
SDKROOT = macosx;
SDKROOT = macosx10.11;
USE_HEADERMAP = NO;
WARNING_CFLAGS = (
"-Wno-c99-extensions",
@ -15664,6 +15664,7 @@
CLANG_WARN__EXIT_TIME_DESTRUCTORS = NO;
CODE_SIGN_IDENTITY = "-";
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 0.9;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = NO;
@ -15725,7 +15726,7 @@
);
INCLUDED_SOURCE_FILE_NAMES = "";
LLVM_LTO = YES;
MACOSX_DEPLOYMENT_TARGET = 10.13;
MACOSX_DEPLOYMENT_TARGET = 10.11;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
OTHER_CFLAGS = (
@ -15733,7 +15734,7 @@
Platform.h,
);
OTHER_LDFLAGS = "";
SDKROOT = macosx;
SDKROOT = macosx10.11;
USE_HEADERMAP = NO;
WARNING_CFLAGS = (
"-Wno-c99-extensions",

View File

@ -265,7 +265,7 @@ PLATFORMDATA ApplePlatformData[] =
"MacBook Pro"_XS8, "1.0"_XS8, "C02ZPHACPG8W"_XS8, "MacBook-Aluminum"_XS8,
0, 0, 0, 0, 0, 0, ""_XS8, "j152f"_XS8, 0 },
//MacBookPro16,2 / MacBook Pro (13-inch, 2020, Four Thunderbolt 3 ports)
{ "MacBookPro16,2"_XS8, "MBP162.88Z.F000.B00.2005132210"_XS8, "1037.120.87.0.0"_XS8, "Mac-5F9802EFE386AA28"_XS8, // Intel Core i7-1068NG7 @ 2.30 GHz
{ "MacBookPro16,2"_XS8, "MBP162.88Z.F000.B00.2005132210"_XS8, "1037.120.87.0.0"_XS8, "Mac-5F9802EFE386AA28"_XS8, // Intel Core i7-1068NG7 @ 2.30 GHz type=0x060b
"MacBook Pro"_XS8, "1.0"_XS8, "C02CLHACML7H"_XS8, "MacBook-Aluminum"_XS8,
0, 0, 0, 0, 0, 0, ""_XS8, "j214k"_XS8, 0 },
//MacBookPro16,3 / MacBook Pro (13-inch, 2020, Two Thunderbolt 3 ports)

View File

@ -2446,6 +2446,8 @@ REFIT_ABSTRACT_MENU_ENTRY* SubMenuCSR()
SubScreen->AddMenuCheck("Allow Device Configuration", CSR_ALLOW_DEVICE_CONFIGURATION, 66);
SubScreen->AddMenuCheck("Allow Any Recovery OS", CSR_ALLOW_ANY_RECOVERY_OS, 66);
SubScreen->AddMenuCheck("Allow Unapproved Kexts", CSR_ALLOW_UNAPPROVED_KEXTS, 66);
SubScreen->AddMenuCheck("Allow Executable Policy Override", CSR_ALLOW_EXECUTABLE_POLICY_OVERRIDE, 66);
SubScreen->AddMenuCheck("Allow Non-authenticated Root", CSR_ALLOW_NON_AUTHENTICATED_ROOT, 66);
// return
SubScreen->AddMenuEntry(&MenuEntryReturn, false);