仅将对`/proc/mykernelmoduledata`限制在应用程序中

发布于 2025-01-29 09:11:20 字数 216 浏览 3 评论 0原文

我编写一个内核模块和用户空间应用程序。内核模块计算敏感信息并将其发送到我们的用户空间应用程序。有没有一种方法可以限制访问/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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文