mirror of
https://github.com/AsahiLinux/m1n1
synced 2024-11-10 01:34:12 +00:00
main: Check for SIP disable for proxy backdoor mode
Seems -v stopped being filtered (or never was?). Explicitly check boot policy, so we don't depend on boot-args filtering directly (which can change). -v still makes things verbose unconditionally, but the proxy backdoor now requires that plus full SIP disable (sip0=127). Signed-off-by: Hector Martin <marcan@marcan.st>
This commit is contained in:
parent
4fd7b1cefd
commit
0c04783a86
1 changed files with 9 additions and 1 deletions
10
src/main.c
10
src/main.c
|
@ -65,7 +65,15 @@ void run_actions(void)
|
|||
|
||||
#ifndef BRINGUP
|
||||
#ifdef EARLY_PROXY_TIMEOUT
|
||||
if (!cur_boot_args.video.display) {
|
||||
int node = adt_path_offset(adt, "/chosen/asmb");
|
||||
u64 lp_sip0 = 0;
|
||||
|
||||
if (node >= 0) {
|
||||
ADT_GETPROP(adt, node, "lp-sip0", &lp_sip0);
|
||||
printf("Boot policy: sip0 = %ld\n", lp_sip0);
|
||||
}
|
||||
|
||||
if (!cur_boot_args.video.display && lp_sip0 == 127) {
|
||||
printf("Bringing up USB for early debug...\n");
|
||||
|
||||
usb_init();
|
||||
|
|
Loading…
Reference in a new issue