Skip to content

Sending data from kext to user space synchronously #3

@leochou0729

Description

@leochou0729

Hello,
Thank you for writing a so great framework. I'm a new MacOS developer. I'm wondering if there is a way to send data from kext to user space daemon and wait there for response. My Kauth callback function needs some user space daemon processing to check whether a file open operation should be denied. I'd like to use the Kernel Control API because it's powerful as well as easy to understand. But according to documentation, ctl_enqueuedata() just puts data in a queue and return immediately. The use space daemon needs to call recv() to get the data. I have no idea how I can do to wait for response(for example, suspend the kernel thread by calling sleep() and wake up when I receive data). Could you please give me some suggestions? Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions