News for hackers. Stuff that matters.
Re:macOS extensions are moving away from the kernel by webmobdev on Wednesday July 07, 2021 @05:15AM (#27759051)
> Are the capabilities of Apple's user-level APIs sufficient to replace most legitimate uses of kernel extensions?

From what I remember reading from some macOS Application Firewall makers, no. (And that's ofcourse, intentional.)

While it is true that poorly coded Kernel extensions can make an OS unstable, this is just another example of Apple taking away more control from its users and further crippling macOS to make it more like ios.

Re:macOS extensions are moving away from the kernel by leokennis on Wednesday July 07, 2021 @09:52AM (#27761117)
> While it is true that poorly coded Kernel extensions can make an OS unstable, this is just another example of Apple taking away more control from its users and further crippling macOS to make it more like ios.

It isn't. They are making it (very) less likely for average simpleton users like myself to expose or fuck up their system.

And for the more elite hackers such as yourself who absolutely want to load third party kernel extensions, they require you to disable SIP. The knowledge and work it takes to do that is a very nice "I hereby declare I know what I'm doing and I alone bear the responsibility if things go wrong" entry barrier.

Re:macOS extensions are moving away from the kernel by least on Wednesday July 07, 2021 @05:51AM (#27759276)
After feedback from aforementioned firewall developers, changes were made to network extensions that allowed them to do what they wanted with their applications (for the most part, at least).

I still think that it’s a worse in-practice system than kexts but they are responding to feedback at least.

You can still load kernel extensions in Big Sur by disabling SIP, though.

Re:macOS extensions are moving away from the kernel by no_time on Thursday July 08, 2021 @07:20AM (#27770535)
I wonder how far away are we from governments mandating SIP and equivalents to be turned on to connect to the internet.
Re:macOS extensions are moving away from the kernel by IfOnlyYouKnew on Wednesday July 07, 2021 @07:02AM (#27759624)
Well, I'm glad to see even the cynics can't find an evil motive here, and has to resort to just assuming stupidity.

That, however, isn't easy to do, considering Apple has a rather impressive track record of creating products people enjoy and buy.

And to jump two replies ahead: them trying to make it "easy" and "save" doesn't imply their users are idiots. Quite a few developers and scientists use Macs, and the lawyers aren't exactly dumb either. Spending hours trying to somehow get both sound and bluetooth to work at the same time, a favourite pastime on Linux, means lifetime wasted for something that shouldn't need doing. And considering nobody reads the source, there is no reason to believe some "expert" has some ability to avoid installing that one extension that soon starts encrypting their files. At least they tend to have better backups...

Re:macOS extensions are moving away from the kernel by Hackbraten on Wednesday July 07, 2021 @08:07AM (#27760149)
Ironically, kexts allow me to have better backups in the first place. APFS won’t check for bit rot, nor does it allow to make snapshots. OpenZFS enables both, and works with a kext. I don’t know whether Apple will allow that use case in the future.

I don’t like the way this is going.

Re:macOS extensions are moving away from the kernel by yehaaa on Wednesday July 07, 2021 @09:53AM (#27761131)
You can definitely make snapshots on APFS. It also use checksums for filesystem integrity.
Re:macOS extensions are moving away from the kernel by Hackbraten on Wednesday July 07, 2021 @12:17PM (#27762807)
> You can definitely make snapshots on APFS.

Apple can. I can’t. Making APFS snapshots requires special entitlements, which they’re not going to give me.

> It also use checksums for filesystem integrity.

It doesn’t check integrity of the actual data though. But I care about my data.

Re:macOS extensions are moving away from the kernel by CharlesW on Wednesday July 07, 2021 @04:12PM (#27765267)
> Apple can. I can’t. Making APFS snapshots requires special entitlements, which they’re not going to give me.

What makes you think that? Carbon Copy Cloner does this, and is made by a small independent developer.

https://bombich.com/kb/ccc6/leveraging-snapshots-on-apfs-vol...

Re:macOS extensions are moving away from the kernel by Hackbraten on Wednesday July 07, 2021 @05:13PM (#27765789)
They have managed to obtain the special entitlement.

Source: https://bombich.com/blog/2018/03/30/building-better-backups-...

They’re one of two apps in the world who have been granted the entitlement as far as I know. The other one is Time Machine.

Re:macOS extensions are moving away from the kernel by yehaaa on Wednesday July 07, 2021 @01:20PM (#27763524)
You can use tmutil to create a snapshot.

Or do you want to create an app that performs a snapshot via some API.

Re:macOS extensions are moving away from the kernel by Hackbraten on Wednesday July 07, 2021 @02:51PM (#27764514)
One does not simply create an APFS snapshot using tmutil. Using tmutil means Time Machine creates a snapshot for me. It also conveniently earmarks the snapshot for later removal at Time Machine’s own discretion.

That’s not what I want. I want to have a say in snapshot retention, not have some tool make the decision for me.

Specifically, I need precise control over snapshot retention so I can maintain several off-site replicas of my backup.

Re:macOS extensions are moving away from the kernel by EricE on Wednesday July 07, 2021 @02:22PM (#27764220)
APFS does NOT checksum the same as ZFS. APFS relies on the SSD controller to checksum/safeguard data. Which is fine so long as all your data is on SSD :p