70 questions
1
vote
0
answers
41
views
AudioDriverKit example driver stops working
What I do:
Build the the AudioDriverKit example driver from Apple and install to an M1 Ipad.
Allow the driver in the settings.
Open some browser and go to Youtube.
Play some video.
Stop playback and ...
1
vote
0
answers
20
views
Ownership of OSObject passed to RequestDeviceConfigurationChange
If I call RequestDeviceConfigurationChange with an OBObject created with OSNumber::withNumber, where do I need to call release() on the OBObject object. The documentation of OSNumber::withNumber says ...
-1
votes
1
answer
139
views
How to create a system extension in Xcode 14.2 - Monterey 12.7.6?
Following the documentation, I'm trying to create a camera extension on macOS Monterey 12.7.6 with Xcode 14.2. It points to somewhere in Xcode new target menu which should contain System Extension >...
1
vote
0
answers
247
views
XPC service and mac application do not connect to each other
I am currently writing an agent for endpoint security. I cannot connect the application and the xpc service. I start the plist with launchctl and then open the application, but it does not connect and ...
-1
votes
1
answer
184
views
Intercepting filesystem calls of other processes on MacOS Ventura
There are various ways to monitor filesystem access on MacOS Ventura, like fs_events or the new Endpoint Security System Extension framework.
Is there a way to intercept and potentially prevent a ...
1
vote
0
answers
450
views
macOS network extension - activate vpn provider failed on startVPNTunnel
I'm trying to start the vpn provider from a container application
After I successfully activated the extension, and started the process by sending xpc request to the network extension, I've tried to ...
2
votes
1
answer
739
views
Is there a macOS objective c or swift call for me to check if a system extension has been installed?
I have googled and searched here and have come up empty.
I have an application that installs a system extension and I'm resorting to writing to a file when the extension is installed to know.
Is there ...
0
votes
1
answer
273
views
Is it possible to read/write another process' memory using the new Apple Endpoint Security Framework?
With kexts we could to vm_read/vm_write, is there a similar way for Endpoint Security?
9
votes
1
answer
1k
views
How to memory-map a PCI BAR using PCIDriverKit?
How to memory-map a PCI Base Address Register (BAR) from a PCIDriverKit driver (DEXT) to a userspace application?
Memory-mapping from a driver extension to an application can be accomplished by ...
3
votes
0
answers
202
views
XCode - How to create bundled CLI tool application
I'm new to XCode, so maybe I'm missing something that is very easy, but how can I create a CLI tool with XCode and bundle it with a system extension I compiled?
I want to create a console app that is ...
1
vote
1
answer
170
views
IOPCIDevice invalidated when calling from a different user process
I'm working with Apple's DriverKitUserClientSample code as a basis, but I'm trying to use the PCIDriverKit.
In my MyClass::Start method I successfully get the IOPCIDevice from the provider, and call ...
-1
votes
1
answer
563
views
Codesign does not set correct entitlements
My project consists of main application, an endpoint security extension and a findersync extension. When I try to build it in release mode, the findersync extension is getting built with entitlements ...
3
votes
1
answer
355
views
DEXT crashes on macOS 10.15.7
I successfully built and ran Apple's sample Communicateing Between a DriverKit Extension and a Client App on macOS 11, meaning I can install the DEXT and also control it via it's client.
On macOS 10....
5
votes
2
answers
1k
views
Alternative for Virtual file system (VFS) kernel extension on macOS M1
we have developed a kernel extension (KEXT) for a virtual file system (VFS) on macOS to integrate our software with external programs like Adobe InDesign or Microsoft Word. Our software and the KEXT ...
3
votes
1
answer
666
views
CopyPipe of DriverKit IOUSBHostInterface fails with kIOReturnError (0xe00002bc)
For my own edification, I'm trying to read some audio data from a USB audio interface using a DriverKit System Extension.
My IOProviderClass is IOUSBHostInterface. I can successfully Open() the ...
1
vote
3
answers
1k
views
Should macOS driverkit system extensions be arm64 or arm64e for Apple Silicon / M1?
I compile a macOS driverkit system extension as a Universal library so that it contains both x86_64 and arm64. One Apple Silicon computer A the driver starts when I attach the USB device. On Apple ...
2
votes
1
answer
254
views
What options can be passed to IOService::Terminate in DriverKit
virtual kern_return_t IOService::Terminate(uint64_t options) says you can pass a parameter with options. I wonder what the different options are? The documentation does not say anything.
3
votes
1
answer
2k
views
System Extension Validation Fails
im trying to submit a Network Extension activation request but i get this error.
The operation couldn’t be completed. (OSSystemExtensionErrorDomain error 9.)
I looked it up and apparently it means &...
0
votes
0
answers
464
views
Using built-in dext driver with new VID/PID?
Apple developer documentation says:
If your hardware communicates entirely using standards-based
protocols, you can ship a driver that matches your hardware to one of
the built-in system drivers.
Is ...
1
vote
1
answer
215
views
Should IOBufferMemoryDescriptor be released of free'd?
I am looking at the documentation of IOBufferMemoryDescriptor. It says "... Except where noted, you are also responsible for releasing buffers that you allocate.".
IOBufferMemoryDescriptor::...
2
votes
2
answers
2k
views
How to map memory in DriverKit using IOMemoryDescriptor::CreateMapping?
I am trying to learn more about DriverKit and memory management, and I read this question:
How to allocate memory in a DriverKit system extension and map it to another process?
And I would like to ...
3
votes
1
answer
1k
views
How to programmatically uninstall App that install DriverKit system extension
I have an app that installs a DriverKit system extension when it launches.
If I then drag this app to the Bin from /Applications then I am prompted about that the app also manages a system extension ...
2
votes
0
answers
154
views
How to save configuration from a DriverKit driver
I need to save some configuration from a DriverKit driver. I was reading How to save kext configuration between sessions and in this case it seems that the preferred way is to save the config from a ...
2
votes
0
answers
269
views
MacOS Network Extensions equivalent to Kernel extensions?
With the release of Big Sur - Network Kernel extensions are now officially inaccessible. However I cannot find the equivalent functionality I need in the new Network Extensions API.
In my NKE (network ...
1
vote
1
answer
808
views
Pass Argument From App Delegate to System Extension, Mac OS
I am creating a system extension and bundling it in a Mac app on Mac OS Catalina.
I have had success building the app and requesting activation of the extension from my application delegate (Swift). ...