android 7.1 服务进程 open串口设备失败
来源:互联网 发布:素颜美女知乎 编辑:程序博客网 时间:2024/06/12 23:13
写了一个简单的helloworld程序作为一个服务,运行后出现各种avc权限问题,如open(/dev/tty*)设备返回-1,log如下:
01-01 11:47:51.200 1714 1714 W helloworld: type=1400 audit(0.0:96): avc: denie
d { read write } for name="ttyVCOM0" dev="tmpfs" ino=3390 scontext=u:r:helloworl
d:s0 tcontext=u:object_r:device:s0 tclass=chr_file permissive=0
解决办法:
在helloworld.te中添加
allow helloworld device:chr_file rw_file_perms;
阅读全文
0 0
- android 7.1 服务进程 open串口设备失败
- 串口调试Android设备
- Thinkpad T550 蓝牙虚拟串口服务失败
- Android系统访问串口设备
- Android系统访问串口设备
- Android系统访问串口设备
- Android系统访问串口设备
- Android系统访问串口设备
- cocos2d-x sqlite3 android上open失败
- Android Binder服务进程
- Android研究_Gralloc_3fb设备Open过程
- Android研究_Gralloc_4alloc设备open过程分析
- 使用kermit与Android设备串口通讯
- 给android设备增加串口功能
- Android 设备上实现串口的移植
- 给Android设备增加串口功能
- Android 设备上实现串口的移植
- Android 设备上实现串口的移植
- Web 前后端分离的意义大吗?
- 如何在 Laravel 中使用 SMTP 发送邮件(适用于 163、QQ、Gmail 等)
- 稀疏矩阵
- OnClickListener多点击处理
- 20170713
- android 7.1 服务进程 open串口设备失败
- 关于MyEclipse下的项目无法使用BASE64Encoder问题的解决办法
- 解决Java调用https服务证书错误javax.net.ssl.SSLHandshakeException
- Dominos<并查集求解>
- boot中的命令行解析器
- c++设计模式之单例模式
- vue-router总结
- Q123:PBRT-V3,各种形式的“光传播方程”的推导依据
- Java常识 ------分支语句(for do---while while语句)