仅将对`/proc/mykernelmoduledata`限制在应用程序中
我编写一个内核模块和用户空间应用程序。内核模块计算敏感信息并将其发送到我们的用户空间应用程序。有没有一种方法可以限制访问/proc/mykernelModuledata
,以便只有我的用户空间应用程序才能读取/写入其中,并且其他应用程序都不会干扰(读/写)?是否有另一种方式可以在内核模块和我的用户空间应用程序之间进行通信,在将数据发送到该数据之前,我的模块可以在其中对我的应用进行身份验证?
I write a kernel module and user-space application. The kernel module computes sensitive information and sends it to our user-space application. Is there a way to restrict access to /proc/myKernelModuleData
such that only my userspace application can read/write in it and no other application can interfere (read/write)? Is there another way to communicate between the kernel module and my user space application, where my module can authenticate my app before sending data to it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论