#
✕ nick:davidrysk[m]
#asahi · 2021-01-11 05:02
davidrysk[m]huh, then I sure wonder where the OS is getting the autologin password for initial setup
#asahi · 2021-01-11 04:59
davidrysk[m](don't send me the contents)
#asahi · 2021-01-11 04:59
davidrysk[m]9
#asahi · 2021-01-11 04:59
davidrysk[m]can you look if there is a file called /etc/kcpassword on the macOS partition?
#asahi · 2021-01-11 02:47
davidrysk[m]It's better to figure out what functionality is missing from 1TR and asking Apple to add it
#asahi · 2021-01-11 02:35
davidrysk[m]rwhitby: can you look for a /etc/kcpassword file on the macOS partition of a fresh DFU'd Mac?
#asahi · 2021-01-11 01:52
davidrysk[m]rwhitby: nice
#asahi · 2021-01-11 01:03
davidrysk[m]does bputil let you set full/reduced/permissive security on that installation?
#asahi · 2021-01-11 01:03
davidrysk[m]which means we probably should be writing them up to report to Apple as bugs
#asahi · 2021-01-11 01:02
davidrysk[m]we're basically mapping out all the edge cases that Apple didn't test
#asahi · 2021-01-11 01:02
davidrysk[m]grr, interesting
#asahi · 2021-01-11 01:02
davidrysk[m]after DFU?
#asahi · 2021-01-11 01:02
davidrysk[m]rwhitby: does that change if you boot (2) once?
#asahi · 2021-01-11 00:59
davidrysk[m]https://github.com/jmahlman/uarts-scripts/blob/master/DEP%20Scripts/com.uarts.DEPprovisioning.public I found a provisioning script that someone uses that seems to run in the context of the _mbsetupuser user and at the end of its execution it deletes /etc/kcpassword
#asahi · 2021-01-11 00:57
davidrysk[m](e.g. breaking all signatures)
#asahi · 2021-01-11 00:57
davidrysk[m]<rwhitby "interesting. I'm pretty sure I "> hm, I wonder if DFU resets the SEP state in some way
#asahi · 2021-01-11 00:56
davidrysk[m]if they are, we can read /etc/kcpassword, extract the _mbsetupuser password, "decrypt" it, and then use that for bputil
#asahi · 2021-01-11 00:56
davidrysk[m]I think it's likely that they are
#asahi · 2021-01-11 00:55
davidrysk[m]wondering if they're using this mechanism https://tinyapps.org/blog/201709070700_kcpassword.html
#asahi · 2021-01-11 00:49
davidrysk[m](thanks rwhitby for doing some tests)
#asahi · 2021-01-11 00:49
davidrysk[m]it appears that during DFU, macOS sets the passwords of the setup user account _mbsetupuser uniquely which are then used for initial setup... I don't think anyone's dug into how this process works
#asahi · 2021-01-10 23:11
davidrysk[m]For all too many ARM platforms, support isn't upstreamed :(
#asahi · 2021-01-10 23:10
davidrysk[m]and it's more work for the kernels, obviously
#asahi · 2021-01-10 23:10
davidrysk[m]needed*
#asahi · 2021-01-10 23:10
davidrysk[m]for the most part; some stuff is patched as needeed
#asahi · 2021-01-10 23:05
davidrysk[m]Alex: I think it means to install whatever the project puts together (Arch Linux ARM + Asahi bootloader/kernel/etc)
#asahi · 2021-01-10 22:59
davidrysk[m]where are people saying that?
#asahi · 2021-01-10 22:56
davidrysk[m]it's more of a project to bring Apple Silicon support to the Linux kernel and provide tooling and a bootloader
#asahi · 2021-01-10 22:14
davidrysk[m]is it _mbsetupuser?
#asahi · 2021-01-10 21:23
davidrysk[m]but yeah they're still doing this
#asahi · 2021-01-10 21:23
davidrysk[m]note that this article is from 2011
#asahi · 2021-01-10 21:21
davidrysk[m]Shiz: some of the comments on that LWN article are interesting :)
#asahi · 2021-01-10 21:20
davidrysk[m]marcan: what pathways are you currently looking at for doing more from 1TR?
#asahi · 2021-01-10 21:17
davidrysk[m]the FSF has been up to this crap for years -- https://lwn.net/Articles/460654/
#asahi · 2021-01-10 21:08
davidrysk[m]in general "fully open" is an ill-defined term
#asahi · 2021-01-10 21:08
davidrysk[m]which I think is ridiculous
#asahi · 2021-01-10 21:08
davidrysk[m]the FSF has this idea that closed firmware that can't be rewritten by software does not make a device non-free
#asahi · 2021-01-10 20:50
davidrysk[m]marcan: have you tested if bputil requires user authentication on a freshly DFU’d Mac?
#asahi · 2021-01-10 19:48
davidrysk[m](that I can see)
#asahi · 2021-01-10 19:48
davidrysk[m]there is no tcl
#asahi · 2021-01-10 19:47
davidrysk[m]so, bleh
#asahi · 2021-01-10 19:47
davidrysk[m]okay... applescript is uncompiled, I believe .scpt is but for that you need osascript
#asahi · 2021-01-10 19:46
davidrysk[m].applescript*
#asahi · 2021-01-10 19:46
davidrysk[m]I meant a applescript
#asahi · 2021-01-10 19:46
davidrysk[m]oh, right. :)
#asahi · 2021-01-10 19:46
davidrysk[m]however, they did add a ton of security tooling that blocks inter-process apple events by default
#asahi · 2021-01-10 19:45
davidrysk[m]they might have disabled apple events, but apple events are used within the OS
#asahi · 2021-01-10 19:45
davidrysk[m]you don't need osascript to run applescript, but you need to precompile the applescript
#asahi · 2021-01-10 19:38
davidrysk[m]Perl doesn't give you a good way to invoke C functions without compiled external modules
#asahi · 2021-01-10 19:30
davidrysk[m]1TR rather, I keep getting that wrong

plus ›