macos-system-extension

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

How should “NewUserClient” be implemented

倾然丶 夕夏残阳落幕 提交于 2020-08-03 09:11:23
问题 I am trying to interact with a dext from an application. I am able to find the service using IOServiceOpen and I get a call to NewUserClient of my dext (I can see the type parameter passed being output in the log). After this I am a bit lost. Reading here about NewUserClient I can see that one should use Create to create a new Service object. The Discussion part here says The keys in the propertiesKey dictionary describe the new service. Should this dictionary be placed in the plist file for

How to set `com.apple.developer.driverkit.transport.usb` entitlement?

风格不统一 提交于 2020-07-01 15:49:30
问题 I am unsure about how to set the com.apple.developer.driverkit.transport.usb key in my dext entitlements file. The Info.plist file already contains the IOKitPersonalities dictionary, and reading about the com.apple.developer.driverkit.transport.usb dictionary it looks like it should contains entries with the same information as the entries of IOKitPersonalities . The entitlements file for a project that is very similar to what is being shown in the WWDC video about driver kit sets this to:

How to set `com.apple.developer.driverkit.transport.usb` entitlement?

≡放荡痞女 提交于 2020-07-01 15:47:29
问题 I am unsure about how to set the com.apple.developer.driverkit.transport.usb key in my dext entitlements file. The Info.plist file already contains the IOKitPersonalities dictionary, and reading about the com.apple.developer.driverkit.transport.usb dictionary it looks like it should contains entries with the same information as the entries of IOKitPersonalities . The entitlements file for a project that is very similar to what is being shown in the WWDC video about driver kit sets this to:

kIOReturnNotPermitted from IOServiceOpen connecting to SystemExtension IOService

孤街浪徒 提交于 2020-05-15 09:29:06
问题 I am trying to create a client connection to a SystemExtension IOService. I can see that my IOUserClient subclass is created ( init() and Start(IOService*) is called), but the return code from IOServiceOpen returns kIOReturnNotPermitted . I am making the call to IOServiceOpen from the same app that creates the activation request. Entitlements for app that makes the activation request / call to IOServiceOpen : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1