【发布时间】:2014-11-24 11:02:54
【问题描述】:
我正在尝试使用一些模块参数执行 insmod abc.ko, 然而,这些模块参数需要动态计算。所以我正在启动一个应用程序 /system/bin/my_app 来计算这些参数,然后在 my_app 中执行 insmod。
问题: 当 my_app 在启动时使用 init.hammerhead.rc 脚本启动时,它无法执行 insmod 并给出以下错误
type=1400 audit(0.0.4): avc: denided {sys_module} for path="system/bin/my_app" dev="mmcblk0p25" ino=170 scontext=u:r:init:s0 tcontext=u:r:init.s0 tclass=file
我怎样才能让 my_app 能够 insmod ?
感谢任何解决此问题的指针
【问题讨论】:
-
应用程序无法插入模块 - 您需要一个 setuid 帮助程序来执行此操作。从理论上讲,您可以使用要传递的参数来运行它。
标签: android linux-kernel android-5.0-lollipop selinux insmod