driverkit

Getting OSSystemExtensionErrorCodeSignatureInvalid After Codeless DEXT is Activated

社会主义新天地 提交于 2021-01-29 08:40:58
问题 I built a codeless DEXT to replace a working codeless KEXT - Migrating a codeless KEXT to a codeless DEXT. I referenced a few sites and GitHub repositories to put it together and had help from other SO users. I am running with SIP turned off, developer mode is on (systemextensionsctl developer on). I am following the advice outlined here https://github.com/knightsc/USBApp/issues/1 for signing the app and dext. When I run the app it is embedded in and request activation for the extension, that

How to allocate memory in a DriverKit system extension and map it to another process?

耗尽温柔 提交于 2021-01-28 04:41:20
问题 I have allocated memory in my application and passed its pointer and size to IOConnectCallStructMethod . Using IOMemoryDescriptor::CreateMapping I have then mapped this memory to the DriverKit system extension process, and it is possible to write to this mapped memory location and read the data from my application. I would now like to do something similar for memory that is allocated in the system extension, and then map it to the application that is using the system extension. I would like

How to allocate memory in a DriverKit system extension and map it to another process?

我的未来我决定 提交于 2021-01-28 04:25:26
问题 I have allocated memory in my application and passed its pointer and size to IOConnectCallStructMethod . Using IOMemoryDescriptor::CreateMapping I have then mapped this memory to the DriverKit system extension process, and it is possible to write to this mapped memory location and read the data from my application. I would now like to do something similar for memory that is allocated in the system extension, and then map it to the application that is using the system extension. I would like

PCI driver Migrating from IOKit kext to Driverkit dext issues

∥☆過路亽.° 提交于 2020-12-15 05:34:10
问题 I'm migrating my PCI driver from iokit to dext using PCIDriverkit. I download the "MyUserUSBInterfaceDriver" sample, modify compile, sign, and run. the dext can load, but there are many errors: kernel: serviceMatchesCDHash: required cdhash 3...3 in personality does not match service kernel: DK: IOUserServer(sc.knight.MyUserUSBInterfaceDriver-0x1000064ac)::exit(CDHash check failed) kernel: (above:This error Repeat 5 times) ............ ............ ............ ............ ............ ......

Migrating from codeless KEXT to DEXT. Usb interfaces disappeared

杀马特。学长 韩版系。学妹 提交于 2020-08-19 10:38:29
问题 I'm trying to migrate from KEXT to DEXT. My USB device should not be matched by the classic driver (in the other case, it does not allow to open the device and interface). I am using a sample USB application for testing. So, before installing the system extension, I was able to see 1 device and 3 interfaces. However, when I install the system extension (next), I can not find any interfaces. They seem to be lost. To search for interfaces I use the command “ioreg -lirc IOUSBHostInterface”. Any

Performance issue after migrating from codeless KEXT to DEXT

混江龙づ霸主 提交于 2020-08-08 06:08:32
问题 I am working on migrating a codeless KEXT to DriverKit. It is used to disable the IOKit HID driver for USB devices that present themselves as HID compliant in firmware upgrade mode. So far I have managed to match an empty subclass of IOService to the relevant devices. Here's an example of the IOKitPersonalities entries I'm using: <dict> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleIdentifierKernel</key> <string>com.apple.kpi.iokit</string> <key

Performance issue after migrating from codeless KEXT to DEXT

无人久伴 提交于 2020-08-08 06:08:11
问题 I am working on migrating a codeless KEXT to DriverKit. It is used to disable the IOKit HID driver for USB devices that present themselves as HID compliant in firmware upgrade mode. So far I have managed to match an empty subclass of IOService to the relevant devices. Here's an example of the IOKitPersonalities entries I'm using: <dict> <key>CFBundleIdentifier</key> <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string> <key>CFBundleIdentifierKernel</key> <string>com.apple.kpi.iokit</string> <key

Migrating a codeless KEXT to a codeless DEXT

那年仲夏 提交于 2020-08-05 13:11:14
问题 I am migrating a codeless KEXT to a codeless DEXT. I have watched the WWDC video and read much of the information on the Apple Developer site. The difficulty I am having is finding not what to do but how to get started. A nice tutorial with an example project would help. In my codeless KEXT, for 4 separate devices I have IOKitPersonalities for IOUSBDevice and IOUSBInterface for each device. The KEXT allowed me to match my devices to my "driver" so the Apple HID driver wouldn't grab them. I

Migrating a codeless KEXT to a codeless DEXT

一个人想着一个人 提交于 2020-08-05 13:08:09
问题 I am migrating a codeless KEXT to a codeless DEXT. I have watched the WWDC video and read much of the information on the Apple Developer site. The difficulty I am having is finding not what to do but how to get started. A nice tutorial with an example project would help. In my codeless KEXT, for 4 separate devices I have IOKitPersonalities for IOUSBDevice and IOUSBInterface for each device. The KEXT allowed me to match my devices to my "driver" so the Apple HID driver wouldn't grab them. I