#
✕ nick:davidrysk[m]
#asahi · 2021-01-10 19:30
davidrysk[m]marcan: question, gonna step back a little here and ask... what level of tooling are you planning that you want python in 1TRR?
#asahi · 2021-01-10 18:31
davidrysk[m]also it might be protected from replacement
#asahi · 2021-01-10 18:31
davidrysk[m]I know that's a big-hammer sort of approach... and there might not be enough room on the recovery partition without deleting stuff
#asahi · 2021-01-10 18:31
davidrysk[m]hm, what if you just replace the entire dyld cache with the one from OS?
#asahi · 2021-01-10 18:29
davidrysk[m]okay, hardened runtime does disable it
#asahi · 2021-01-10 18:28
davidrysk[m]but they do work for self-compiled code
#asahi · 2021-01-10 18:27
davidrysk[m]the flags don't seem to work on macOS though
#asahi · 2021-01-10 18:25
davidrysk[m]there used to be warning printout but Apple disabled it because "the warnings are causing too much confusion": https://github.com/opensource-apple/dyld/blob/master/src/dyld.cpp#L1695
#asahi · 2021-01-10 18:25
davidrysk[m]Shiz: they're all ignored for codesigned code
#asahi · 2021-01-10 16:38
davidrysk[m](as opposed to an apple-signed or an adhoc-signed)
#asahi · 2021-01-10 16:38
davidrysk[m]will a developer signed executable run in 1TRR?
#asahi · 2021-01-10 16:38
davidrysk[m]oh yeah
#asahi · 2021-01-10 16:37
davidrysk[m]so I do wonder if the dyld in recovery is different
#asahi · 2021-01-10 16:37
davidrysk[m]I'm guessing yes
#asahi · 2021-01-10 16:37
davidrysk[m]did you also use DYLD_SHARED_REGION=private?
#asahi · 2021-01-10 16:32
davidrysk[m](according to the dyld(1) manpage)
#asahi · 2021-01-10 16:32
davidrysk[m]there is a DYLD_SHARED_CACHE_DIR var
#asahi · 2021-01-10 16:31
davidrysk[m]right, the signatures aren't just embedded in the shared cache.
#asahi · 2021-01-10 16:30
davidrysk[m](also is initial testing in x86_64 recovery useful?)
#asahi · 2021-01-10 16:30
davidrysk[m]does DYLD_INSERT_LIBRARIES work in 1TRR?
#asahi · 2021-01-10 15:09
davidrysk[m]True
#asahi · 2021-01-10 15:08
davidrysk[m]because it circumvents anti-downgrade protection, which could lead to the ability to bypass Activation Lock and similar mechanisms
#asahi · 2021-01-10 15:07
davidrysk[m]That would likely be a CVE
#asahi · 2021-01-10 15:05
davidrysk[m]which means a foreign boot policy that specifies reduced or permissive security would be rejected
#asahi · 2021-01-10 15:05
davidrysk[m]Part of the model is that the boot policy is signed by the SEP
#asahi · 2021-01-10 14:40
davidrysk[m](also the computers already have macOS on them, and doing DFU restore puts macOS back, though out-of-the-box setup of macOS does require agreeing to the EULA which some will find objectionable)
#asahi · 2021-01-10 14:39
davidrysk[m]where do you get the existing user without installing macOS?
#asahi · 2021-01-10 14:39
davidrysk[m]the fact that bputil can't work on a Mac without an OS because of no credentials is a bug
#asahi · 2021-01-10 14:38
davidrysk[m]Yes, that's what I was going to say, I think the user creds go into the SEP
#asahi · 2021-01-10 14:37
davidrysk[m]meaning, that macOS has to be provisioned to allow its users to provision a new OS
#asahi · 2021-01-10 14:36
davidrysk[m]is it "as long as the OS has already been provisioned"?
#asahi · 2021-01-10 13:57
davidrysk[m]The fact that with a Mac without macOS set up there is no such account is an oversight that I very much doubt will be fixed soon
#asahi · 2021-01-10 13:56
davidrysk[m]marcan: the login creds that bputil wants in Recovery are the login creds of an administrative macOS account
#asahi · 2021-01-10 13:53
davidrysk[m]But that’s probably one of the many things that’s dragging out
#asahi · 2021-01-10 13:53
davidrysk[m]Btw I’m kinda frustrated that Apple still hasn’t updated their platform security documentation for M1
#asahi · 2021-01-10 13:44
davidrysk[m]marcan: what exactly do you need in recovery?
#asahi · 2021-01-10 05:11
davidrysk[m]no M1 support yet
#asahi · 2021-01-10 05:11
davidrysk[m]yep
#asahi · 2021-01-10 05:05
davidrysk[m]DFU recovery should blow away everything and return the device to a near-factory (but on latest OS) state
#asahi · 2021-01-10 04:31
davidrysk[m]which means that most of them are only as long as they need to be
#asahi · 2021-01-10 04:31
davidrysk[m]one of the benefits of the non-in-person WWDC is that talks aren't forced into 30 or 60 minute slots
#asahi · 2021-01-10 04:29
davidrysk[m]there's a transcript too
#asahi · 2021-01-10 04:29
davidrysk[m]https://developer.apple.com/videos/play/wwdc2020/10686/
#asahi · 2021-01-10 04:28
davidrysk[m]it's short
#asahi · 2021-01-10 04:27
davidrysk[m]marcan: that was covered in the WWDC talk :)
#asahi · 2021-01-10 04:19
davidrysk[m](as long as the host OS supports the latest Configurator)
#asahi · 2021-01-10 04:18
davidrysk[m]yeah, but DFU should be independent on what OS you're running on the host computer
#asahi · 2021-01-10 03:47
davidrysk[m]the documentation at https://support.apple.com/guide/apple-configurator-2/revive-or-restore-a-mac-with-apple-silicon-apdd5f3c75ad/mac does not indicate that this is necessary...
#asahi · 2021-01-10 03:46
davidrysk[m]rwhitby: very interesting, I wonder why.
#asahi · 2021-01-10 01:59
davidrysk[m]I guess what I'm saying is that Apple didn't do it to make it harder for us but to slim down recovery

plus ›