android6.0第三方app如何打开串口
来源:互联网 发布:股票辅助软件 编辑:程序博客网 时间:2024/05/29 18:04
FROM:http://blog.csdn.net/lushengchu_luis/article/details/52775740
折腾了一天,用audit2allow工具解析avc错误,把所有的权限都加上了,还是不行,一直有以下提示:
无意中看到网上这篇文章,在device.te加入type serial_device, dev_type, mlstrustedobject;这一行,问题迎刃而解,原文如下,就不标记出处了,因为我是在一个满是成人弹幕广告的网站上搜到的,嘿嘿。
第三方签名APP,在SElinux下,如何获得对一个内核节点的访问权限
在android6.0中,出于安全考虑,不允许第三方签名的app被分配mlstrustedsubject:
在external/sepolicy/untrusted_app.te文件中:
# Do not allow untrusted_app to be assignedmlstrustedsubject.
# This would undermine the per-user isolation model being
# enforced via levelFrom=user in seapp_contexts and the mls
# constraints.
# on attribute assignment, this relies on the fact that fork
# permission only makes sense within a domain (hence should
# never be granted to any other domain withinmlstrustedsubject)
# and untrusted_app is allowed fork permission to itself.
neverallow untrusted_app mlstrustedsubject:process fork;
所以在使用第三方签名app时,希望第三方签名app某个进程能够对内核节点进行操作,可按如下修改:
1.在device/sprd/scx20/common/sepolicy/file_contexts 文件中添加:
/dev/abc
2.在device/sprd/scx20/common/sepolicy/device.te 文件中添加:
type abc_device, dev_type, mlstrustedobject;
3.在device/sprd/scx20/common/sepolicy/untrusted_app.te 文件中添加:
allow
operate为赋予的权限。
注:
mlstrustedsubject:这一attribute包含了所有能越过MLS检查的主体domain。
mlstrustedobject:这一attribute包含了所有能越过MLS检查的客体type。
================================================================================
- android6.0第三方app如何打开串口
- android6.0第三方app如何打开串口
- 从第三方打开APP
- 打开第三方地图App
- swift3.0打开第三方地图APP进行导航
- android6.0第三方APP获得设备节点的访问权限
- Android6.0权限第三方库:PermissionsDispatcher
- ios中代码打开第三方app
- 微信打开第三方app
- iOS 打开第三方 APP 配置 参数
- 使用第三方APP打开文件
- iOS app 打开第三方接口、拨打电话、打开地图第三方app等
- iOS 配置app打开第三方app,分享基础
- ios调用第三方程序打开文件,以及第三方调用自己的APP打开文件
- ios调用第三方程序打开文件,以及第三方调用自己的APP打开文件
- ios调用第三方程序打开文件,以及第三方调用自己的APP打开文件
- android开发仿照第三方app打开方式,如何将你的app显示在打开列表,并且将文件复制到你的app应用内
- 使用第三方APP打开本地文档 (UIDocumentInteractionController)
- vscode 1.11之后不能格式化react js代码问题
- Android studio打开github上clone下来的项目出现“Failed to open zip file"
- 卢俊卿阐述安全是幸福城市建设基础中的基础
- ListView 分组(实现联系人)、 ExpandableListView (可拓展ListView实现,简单三国杀界面)、Spinner(二级联动)
- 基于nodejs与websocket的加密认证聊天室
- android6.0第三方app如何打开串口
- EasyUI入门1 实现下拉框二级联动
- tinyflow源码阅读-0
- docker 基础知识
- 利用cmd命令导入sql文件
- easyui 项目fun公共方法
- linux下gcc安装
- 9.Flume Sinks
- 使用k-means(KNN)算法改进约会网站和手写字系统案例