#asahi · 2021-01-10 16:19
marcanI mean they went through all the trouble to do this customkc thing, it's not like they don't *want* people running their own code#asahi · 2021-01-10 16:19
marcanI think there are enough nice people at Apple that, if nothing else, once this all gets off the ground and people are actually using it, there's a chance a better flow will be implemented :)#asahi · 2021-01-10 16:14
marcanthe tools that apple provides allow for *replacing* the kernel of an existing OS with a custom one, and crucially, that operation must be authenticated *by a user created on that existing OS*. that means that we cannot just "fake" an OS, because we have to actually boot it to create a user that can authenticate that operation#asahi · 2021-01-10 16:11
marcanthe plan for how boot works has not changed, more like we understand better what the requirements are now#asahi · 2021-01-10 16:10
marcanit's unclear if we have a way around this or if we depend on Apple to implement a better flow#asahi · 2021-01-10 16:10
marcanthecake21[m]: because the current macos custom kernel flow requires it#asahi · 2021-01-10 15:09
marcan(because that's what was failing for me due to some glitch in personalization putting the file in the wrong place)#asahi · 2021-01-10 15:09
marcanwe know the personalization ticket is checked during boot policy creation#asahi · 2021-01-10 15:08
marcanit could still require personalization before signing such a boot policy, even if it does not enforce it at runtime#asahi · 2021-01-10 15:07
marcanthe security is based on data volume encryption#asahi · 2021-01-10 15:07
marcanwhy?#asahi · 2021-01-10 15:07
marcane.g. can you ask for no security up front, and get it#asahi · 2021-01-10 15:07
marcanso my question is, can it do both at once#asahi · 2021-01-10 15:07
marcanand it will resign such a policy with permissive security, given that OS's credentials#asahi · 2021-01-10 15:06
marcanit will sign a boot policy for a new OS, without existing credentials for it (obviously), with full security#asahi · 2021-01-10 15:06
marcanyes but there are at least two flows here with the SEP#asahi · 2021-01-10 14:43
marcanbut I can't claim to fully understand their security model here#asahi · 2021-01-10 14:42
marcansince that also is something that only comes along with full security#asahi · 2021-01-10 14:42
marcanthis would also in principle allow for avoiding the phone-home requirement#asahi · 2021-01-10 14:42
marcanit well might and the tools just don't implement it#asahi · 2021-01-10 14:41
marcanand my question is, does the underlying SEP security model allow for 3) provision a new or foreign, reduced-security OS, blank without creds#asahi · 2021-01-10 14:41
marcanso the tools apple gives us can either 1) provision a new or foreign, full-security OS, blank without creds, and 2) downgrade the security of an OS, with creds#asahi · 2021-01-10 14:40
marcanand make it work#asahi · 2021-01-10 14:40
marcanor, if we can figure out a way to run arbitrary code in 1TR, can we just build a different flow ourselves#asahi · 2021-01-10 14:40
marcanthe question is, is this also baked into the underlying protocol#asahi · 2021-01-10 14:40
marcanso we know bputil refuses to work#asahi · 2021-01-10 14:40
marcanyes but when "installing" macOS or importing a foreign macOS (which is what I did when I copied chunks of it by hand) the boot policy gets created for you, without a user or with an existing user on the other macOS#asahi · 2021-01-10 14:38
marcanif you could use an existing user to provision a new OS in permissive mode, then for dual boot users, you could just provision linux without ever going through the full macos install#asahi · 2021-01-10 14:38
marcanright now, it doesn't matter if you want to dualboot or not; either way you have to do a full-fat install of macos first (if you want to dual boot, you need to do that *in addition* to your normal macos partition), then replace it with linux, then maybe delete all the junk and files and shrink the partition if you want to reclaim the space, which is a PITA#asahi · 2021-01-10 14:37
marcanwithout doing a dummy macos install#asahi · 2021-01-10 14:37
marcanbut the use case I have in mind is simply dual booting#asahi · 2021-01-10 14:37
marcanwell its users need to exist in SEP-backed credential storage I assume#asahi · 2021-01-10 14:37
marcanalso, alternatively, we could figure out if there is a way to convince everything that a user was set up in the new OS without actually booting it#asahi · 2021-01-10 14:36
marcanwhat do you mean?#asahi · 2021-01-10 14:36
marcanso the question is can we combine those two: can an existing user on another OS provision a new OS *with downgraded security from the get go*#asahi · 2021-01-10 14:36
marcanso there is clearly some security model path that says "existing users on another OS are allowed to provision a new OS"#asahi · 2021-01-10 14:35
marcandavidrysk[m]: but when you do a normal boot picker selection of an "alien" macos partition, or when you *install* macos, it asks you for an account on the *other* macOS partition before doing all the provisioning#asahi · 2021-01-10 14:35
marcanjustMaku: chroot does not work to actually run ejecutables due to amfi#asahi · 2021-01-10 13:44
marcanwell it would be nice if we could actually run code that calls frameworks#asahi · 2021-01-10 10:54
marcandoesn't seem to work#asahi · 2021-01-10 10:47
marcanperl is in recovery#asahi · 2021-01-10 10:46
marcandoes perl actually have a dynamic ffi that works on macos?#asahi · 2021-01-10 10:46
marcaninstall_name_tool sounds like it's going to break signatures :p#asahi · 2021-01-10 10:39
marcandyld: Library not loaded: /System/Library/Frameworks/Python.framework/Versions/2.7/Python#asahi · 2021-01-10 10:39
marcan# /Volumes/Linux/usr/bin/python2.7#asahi · 2021-01-10 10:39
marcanand also python wants a Python thing (which isn't in the cache thankfully) but DYLD_LIBRARY_PATH isn't helping#asahi · 2021-01-10 10:38
marcanby the way, another problem with using binaries from macOS is the dyld_shared_cache...#asahi · 2021-01-10 10:25
marcan(the M1 target isn't there yet either)#asahi · 2021-01-10 10:25
marcan:p#asahi · 2021-01-10 10:25
marcannot terribly usable :@p