Firefly开源社区

打印 上一主题 下一主题

关于rk3288 i2c selinux policy的问题

9

积分

0

威望

0

贡献

游客

积分
9

关于rk3288 i2c selinux policy的问题

发表于 2017-11-27 11:23:28      浏览:5174 | 回复:0        打印      只看该作者   [复制链接] 楼主
用JNI访问/dev/i2c-1串口控制台显示消息为
[16107.709843] type=1400 audit(1293983223.400:52): avc: denied { read write } for pid=3046 comm="comtech.iicdemo" name="i2c-1" dev="tmpfs" ino=8616 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
[16107.710951] type=1400 audit(1293983223.400:53): avc: denied { open } for pid=3046 comm="comtech.iicdemo" path="/dev/i2c-1" dev="tmpfs" ino=8616 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1
[16107.711854] type=1400 audit(1293983223.400:54): avc: denied { ioctl } for pid=3046 comm="comtech.iicdemo" path="/dev/i2c-1" dev="tmpfs" ino=8616 ioctlcmd=703 scontext=u:r:untrusted_app:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=1


使用setenforce 0设置成功后执行还是报这些错误出来。
将CONFIG_SECURITY_XXXXXX=y注释后重新编译内核,问题依然存在。
求教一下这个policy该怎么写。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表