#
…

2021-04-30

00:00Hexagon has joined #asahi
00:05artemist has joined #asahi
00:07odmir has joined #asahi
00:09raster- has joined #asahi
00:09raster has quit [Disconnected by services]
00:09raster- is now known as raster
00:43mrkajetanp has quit [Quit: WeeChat 3.1]
00:44marcanit's going to be hard selling most of these proprietary Apple security features on Linux
00:44marcanLinux cares about working on the hardware, but single-system security features that touch core code are unlikely to fly
00:45marcanuntil other systems start suopporting ~equivalent stuff, if that happens then we may be able to support apple-specific implementations as long as the core codepaths remain the same
00:47linkmauve has quit [Ping timeout: 276 seconds]
00:57raster has quit [Quit: Gettin' stinky!]
00:57odmir has quit [Ping timeout: 240 seconds]
01:24odmir has joined #asahi
01:31aquijoule_ has joined #asahi
01:33richbridger has quit [Ping timeout: 265 seconds]
01:50maknho has quit [Ping timeout: 252 seconds]
01:52maknho has joined #asahi
02:01Bublik has quit [Ping timeout: 240 seconds]
02:03Bublik has joined #asahi
02:28odmir has quit [Ping timeout: 240 seconds]
02:45phiologe has joined #asahi
02:45PhilippvK has quit [Ping timeout: 276 seconds]
03:11marvin24 has quit [Ping timeout: 250 seconds]
03:11marvin24 has joined #asahi
05:11sorearit's very pkeys-like
05:22VinDuv has joined #asahi
05:32ephe_meral1 has joined #asahi
05:40jeffmiw_ has joined #asahi
05:44jeffmiw_ has quit [Ping timeout: 240 seconds]
06:17maknho_ has joined #asahi
06:20maknho has quit [Ping timeout: 268 seconds]
06:23VinDuv has quit [Quit: Leaving.]
06:58maknho_ has quit [Quit: WeeChat 2.3]
06:58maknho has joined #asahi
07:20CDFH_ has joined #asahi
07:21CDFH has quit [Ping timeout: 260 seconds]
07:42agrafmarcan: I suspect you could rebuild something similar to PPL in PV logic for VMs generically.
07:42marcanprobably
07:43easylee has left #asahi ["The Lounge - https://thelounge.chat"]
07:44dottedmagmarcan: Do they care about number of device types, or about number of devices out there? Would it be easier to sell "this feature will eventually cover ~8% of all laptops/desktops in the world"?
07:45marcandottedmag: it wouldn't cover 8% of all laptops/desktops because people wouldn't *use* it
07:45svenor we just don't enable SPRR/GXF and we're done with it
07:45marcanthis whole thing only makes any sense if you lock down the kernel
07:45marcansven: that's what I'm saying
07:45marcandottedmag: Apple *enforces* kernel lockdown, because they can do that
07:45marcanand that makes ~every macos user protected
07:45svenmarcan: yeah, and I agree
07:45marcanbut how many linux users turn on kernel lockdown?
07:45marcanbecause if you don't this whole thing is ~useless
07:46marcansame with rootless etc
07:46marcanapple gets to push all this security stuff because they control the platform
07:46dottedmagAh, ok. Nevertheless, "single-system" sounds weird: it sounds like if you churn out 1000 devices, each in batches of 1000, it will be easier to push features into kernel than if you produce 2 devices, in millions each.
07:46marcanbut on linux it's all optional, and the only people who really care are the people running cloud servers, and the 1% of infosec folks
07:47marcanheck even I don't care for my desktops
07:47marcanI like being able to load modules
07:47dottedmagYeah, macmini clouds are not going to take over the world any time soon.
07:47marcan(and realize I'm an infosec person; I'm being very pragmatic here)
07:49mjg59_marcan: Lockdown's on by default on all desktop/laptop hardware sold since 2012 unless you disable secure boot first
07:49svenI think PPL is also more about protecting user land and enforcing code signing than the kernel itself. for the kernel they already have this thing where they can lock down a range for writes and then disallow running in EL1/2 outside of that range
07:49marcanmjg59_: that one's news to me, heh
07:49mjg59_marcan: You don't get a signed bootloader unless your kernel does that
07:52marcanmjg59_: ironically, not macs I think?
07:52marcanobviously the T2 stuff does secureboot
07:52mjg59_Heh, yeah, no Macs
07:52marcanbut I don't think UEFI on previous intel macs has any equivalent toggle
07:52mjg59_And no way to re-key the T2s
07:53mjg59_Having a DTB flag to enable lockdown would seem reasonable
07:53marcanand my previous machine was purchased in *checks* 2012
07:53mjg59_And then let the bootloader inject that based on firmware config
07:53marcan(and was a barebone anyway)
07:53marcanso in my defense I haven't had to deal with any proper secureboot x86 machines ;)
07:54marcan(except the surface I messed with recently)
07:54marcanmjg59_: firmware config?
07:55mjg59_marcan: Er yeah ok I guess not actually firmware in this scenario
07:55marcanI think I'd just want that flag hardcoded in m1n1/u-boot (possibly patched at install time by a script)
07:55marcanif the user wants to switch modes/keys they can go into 1TR and redo that
07:55marcanno point in expanding that attack surface
07:56marcanas far as all the prior stages are concerned we are already in permissive mode; the only root of trust we have is m1n1 itself which is effectively hashed and locked down and can only be modified from 1TR
07:56marcanso it stands to reason that any security toggling should happen from there too
07:57mjg59_Yeah - are you able to set any metadata in 1TR?
07:57marcan(which is still a pretty good state of affairs all things considered; it does mean we need to figure out SEP credential management since that is how a user authenticates to 1TR)
07:57marcannvram bootargs should work I think? I think those are global though, not per-OS, though OSes in secure mode ignore them
07:58marcanthere is also the whole csrutil/SIP thing
07:58marcanif we really want to abuse those flags for secureboot, we could
07:58mjg59_Oh, right, you just switch the hash out
07:58marcanI mean, I don't really see a point in trying to use any apple infra for this, when we can just swap out the bootloader
07:58marcanmight as well reduce dependencies on their stuff
08:00mjg59_I never got the automatic secure boot→lockdown patch upstream, but it seems reasonable to tag on with that
08:01marcanI should grab the latest macos beta and see if apple have improved any of the OS adoption stuff
08:01marcanthat is a blocker for macos-free installs
08:01marcan(and I need to reverse engineer the user db stuff to make it work...)
08:04marcanmjg59_: wait, didn't kernel lockdown show up in like 2019?
08:14mjg59_marcan: Yeah, upstream
08:14mjg59_marcan: Everyone had been shipping it as external patches for years
08:46StreetW-dc has joined #asahi
08:50StreetW-dcHello. I have a PC with Windows XP. I like Windows XP. But here is many tasks need solutions. I think to replace Windows XP by other OS that not worse XP. What can you recommend?
09:58StreetW-dc has quit [Ping timeout: 240 seconds]
10:00raster has joined #asahi
10:17herbas has joined #asahi
10:18herbas has quit [Client Quit]
10:26kettenis1 has quit [Ping timeout: 245 seconds]
10:33kettenis has joined #asahi
10:33linkmauve has joined #asahi
10:50jeffmiw_ has joined #asahi
10:54jeffmiw_ has quit [Ping timeout: 252 seconds]
11:04prusnak has quit [Quit: Connection closed for inactivity]
11:24choozy has joined #asahi
11:33prusnak has joined #asahi
11:46Bublik has quit [Ping timeout: 252 seconds]
11:48Bublik has joined #asahi
11:56illya has quit [Quit: ZNC - https://znc.in]
12:01illya_ has joined #asahi
12:20choozy has quit [Ping timeout: 246 seconds]
12:22illya_ is now known as illya
12:25zkrx has quit [Ping timeout: 265 seconds]
12:42zkrx has joined #asahi
12:46odmir has joined #asahi
12:47odmir_ has joined #asahi
12:50odmir has quit [Ping timeout: 240 seconds]
12:51odmir_ has quit [Ping timeout: 240 seconds]
13:34modrobert has quit [Read error: Connection reset by peer]
13:34m0drobert has joined #asahi
13:41jeffmiw_ has joined #asahi
13:45jeffmiw_ has quit [Ping timeout: 240 seconds]
13:47taziden has quit [Quit: WeeChat 2.3]
13:47taziden has joined #asahi
13:48taziden has quit [Client Quit]
15:09qyousef_ has quit [Ping timeout: 265 seconds]
15:50kettenis has quit [Ping timeout: 260 seconds]
15:52kettenis has joined #asahi
16:00kharit[m] has quit [Quit: Idle for 30+ days]
16:02vimal has quit [Quit: Leaving]
16:27modwizcodeI think the default on lockdown mode is fairly permissive iirc?
16:29modwizcodeI wonder if a feature like the GX implementation cuold be generically useful if it was introduced as a core architecture feature
16:35VinDuv has joined #asahi
16:43svenpeterThe default gx mode is that page table permissions behave as you’d expect them to
16:44svenpeterAnd I don’t really see how it would be useful for Linux. Implementing it would probably be along the lines of implementing a new (sub)architecture
16:45svenpeterXnu uses it to enforce code signing in user land afaict
16:45klaus has quit [Quit: leaving]
16:47klaus has joined #asahi
17:01klaus has quit [Quit: leaving]
17:02klaus has joined #asahi
17:23taziden has joined #asahi
17:24ephe_meral1 has quit [Ping timeout: 268 seconds]
17:35klaus has quit [Quit: leaving]
17:35klaus has joined #asahi
18:00odmir has joined #asahi
18:02odmir has quit [Remote host closed the connection]
18:02odmir has joined #asahi
18:04klaus has quit [*.net *.split]
18:04m0drobert has quit [*.net *.split]
18:04Hexagon has quit [*.net *.split]
18:04bsandro has quit [*.net *.split]
18:04bgianf has quit [*.net *.split]
18:04Shiz has quit [*.net *.split]
18:04tmlind has quit [*.net *.split]
18:04inglor has quit [*.net *.split]
18:04vlixa has quit [*.net *.split]
18:04Ziemas has quit [*.net *.split]
18:04flying_sausages has quit [*.net *.split]
18:04macc24 has quit [*.net *.split]
18:07inglor has joined #asahi
18:07bgianf has joined #asahi
18:07bsandro has joined #asahi
18:07tmlind has joined #asahi
18:07Ziemas has joined #asahi
18:07macc24 has joined #asahi
18:07vlixa has joined #asahi
18:07flying_sausages has joined #asahi
18:07m0drobert has joined #asahi
18:07klaus has joined #asahi
18:07Shiz has joined #asahi
18:07Hexagon has joined #asahi
18:14odmir has quit [Remote host closed the connection]
18:23odmir has joined #asahi
18:24odmir has quit [Remote host closed the connection]
18:24odmir has joined #asahi
18:48raster has quit [Quit: Gettin' stinky!]
18:55raster has joined #asahi
18:57raster has quit [Client Quit]
19:24odmir has quit [Remote host closed the connection]
19:24odmir has joined #asahi
19:31odmir has quit [Ping timeout: 240 seconds]
19:33maknho_ has joined #asahi
19:36maknho has quit [Ping timeout: 268 seconds]
19:40maknho_ has quit [Ping timeout: 252 seconds]
19:42maknho_ has joined #asahi
19:42raster has joined #asahi
19:47maknho__ has joined #asahi
19:49maknho__ has quit [Client Quit]
19:50maknho_ has quit [Ping timeout: 240 seconds]
19:53VinDuv has quit [Quit: Leaving.]
19:54maknho has joined #asahi
19:54klaus has quit [Quit: leaving]
19:57klaus has joined #asahi
19:57kettenis has quit [Ping timeout: 265 seconds]
19:58kettenis has joined #asahi
20:05davidrysk[m]svenpeter: I wonder if the default gx mode is different on iOS. :)
20:06odmir has joined #asahi
20:14raster has quit [Quit: Gettin' stinky!]
20:35linkmauve has quit [Ping timeout: 240 seconds]
20:42odmir has quit [Remote host closed the connection]
20:59odmir has joined #asahi
21:12jeffmiw_ has joined #asahi
21:16jeffmiw_ has quit [Ping timeout: 252 seconds]
21:20linkmauve has joined #asahi
21:30zopieux has quit [Ping timeout: 260 seconds]
21:31zopieux has joined #asahi
22:06rjeffman has quit [Ping timeout: 260 seconds]
22:08zkrx has quit [Ping timeout: 260 seconds]
22:27choozy has joined #asahi
22:27raster has joined #asahi
22:34zkrx has joined #asahi
22:36odmir has quit [Remote host closed the connection]
22:37svendavidrysk[m]: same thing. it's just that xnu (both on iphone and m1) quickly changes that during startup
22:46jeffmiw has quit [Ping timeout: 246 seconds]
22:47odmir has joined #asahi
23:05choozy has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
23:13kettenis has quit [Ping timeout: 240 seconds]
23:14odmir has quit [Remote host closed the connection]
23:15kettenis has joined #asahi
23:16odmir has joined #asahi
23:21kettenis has quit [Ping timeout: 265 seconds]
23:22kettenis has joined #asahi
23:28odmir has quit [Remote host closed the connection]
…