MCPcopy Create free account
hub / github.com/CloverHackyColor/CloverBootloader / SubMenuCSR

Function SubMenuCSR

rEFIt_UEFI/refit/menu.cpp:2392–2421  ·  view source on GitHub ↗

* This is a simple and user friendly submenu which makes it possible to modify * the System Integrity Protection configuration from the Clover's GUI. * Author: Needy. * The below function is based on the SubMenuDsdtFix function. */

Source from the content-addressed store, hash-verified

2390 * The below function is based on the SubMenuDsdtFix function.
2391 */
2392REFIT_ABSTRACT_MENU_ENTRY* SubMenuCSR()
2393{
2394 // init
2395 REFIT_MENU_ITEM_OPTIONS *Entry;
2396 REFIT_MENU_SCREEN *SubScreen;
2397
2398 // create the entry in the main menu
2399 Entry = newREFIT_MENU_ITEM_OPTIONS(&SubScreen, ActionEnter, SCREEN_CSR, NullXString8);
2400
2401 // submenu description
2402 SubScreen->AddMenuInfoLine_f("Modify the System Integrity Protection configuration.");
2403 SubScreen->AddMenuInfoLine_f("All configuration changes apply to the entire machine.");
2404
2405 // available configurations
2406 SubScreen->AddMenuCheck("Allow Untrusted Kexts", CSR_ALLOW_UNTRUSTED_KEXTS, 66);
2407 SubScreen->AddMenuCheck("Allow Unrestricted FS", CSR_ALLOW_UNRESTRICTED_FS, 66);
2408 SubScreen->AddMenuCheck("Allow Task For PID", CSR_ALLOW_TASK_FOR_PID, 66);
2409 SubScreen->AddMenuCheck("Allow Kernel Debuger", CSR_ALLOW_KERNEL_DEBUGGER, 66);
2410 SubScreen->AddMenuCheck("Allow Apple Internal", CSR_ALLOW_APPLE_INTERNAL, 66);
2411 SubScreen->AddMenuCheck("Allow Unrestricted DTrace", CSR_ALLOW_UNRESTRICTED_DTRACE, 66);
2412 SubScreen->AddMenuCheck("Allow Unrestricted NVRAM", CSR_ALLOW_UNRESTRICTED_NVRAM, 66);
2413 SubScreen->AddMenuCheck("Allow Device Configuration", CSR_ALLOW_DEVICE_CONFIGURATION, 66);
2414 SubScreen->AddMenuCheck("Allow Any Recovery OS", CSR_ALLOW_ANY_RECOVERY_OS, 66);
2415 SubScreen->AddMenuCheck("Allow Unapproved Kexts", CSR_ALLOW_UNAPPROVED_KEXTS, 66);
2416
2417 // return
2418 SubScreen->AddMenuEntry(&MenuEntryReturn, false);
2419 ModifyTitles(Entry);
2420 return Entry;
2421}
2422
2423REFIT_ABSTRACT_MENU_ENTRY* SubMenuBLC()
2424{

Callers 1

SubMenuSystemFunction · 0.85

Calls 5

ModifyTitlesFunction · 0.85
AddMenuInfoLine_fMethod · 0.80
AddMenuCheckMethod · 0.80
AddMenuEntryMethod · 0.80

Tested by

no test coverage detected