安卓7.1中添加服务,内核log出现Service xxx does not have a SELinux domain defined【转】
来源:互联网 发布:网易云音乐数据库 编辑:程序博客网 时间:2024/06/09 18:09
该提示说明没有定义SELinux domain,导致服务xxx无法自启动。为了解决这个问题我们按如下方式修改或添加sepolicy文件:
/system/bin/xxx u:object_r:xxx_exec:s0
需要为新增的进程增加域、执行权限type xxx, domain;type xxx_exec, exec_type, file_type;然后启用这个域init_daemon_domain(xxx)
PS:domain.te等有一些
neverallow
的规则,可能与自定义的te文件冲突,解决办法是domain.te
的规则加入例外,如下:
neverallow { domain -init -ueventd -helloworld } device:chr_file { open read write };
- 1
阅读全文
0 0
- 安卓7.1中添加服务,内核log出现Service xxx does not have a SELinux domain defined【转】
- Service xxx does not have a SELinux domain defined
- Service xxx does not have a SELinux domain defined
- Service xxx does not have a SELinux domain defined
- init: Service powerbtn does not have a SELinux domain defined.
- (OK) init: Service exec 1 (/system/bin/logwrapper) does not have a SELinux domain defined.
- init启动Native Service时出现Service xxxx needs a SELinux domain defined;
- init 启动 Native Service 时出现Service xxxx needs a SELinux domain defined; please fix 警告的说明
- sql server 2012 reporting service 用户权限访问问题 User 'Domain\user' does not have required permissions
- [Android][L][SELinux]Define a SELinux domain for Service
- 底部弹出DialogFragment中使用ViewPager,ViewPager中使用Fragment出现Fragment does not have a view错误
- WCF分布式开发常见错误(3):客户端调用服务出错:You have tried to create a channel to a service that does not support .Net Framing
- ORA-23413: table "DCS_BIZ"."TMP_12" does not have a materialized view log
- SSRS 2014 User Domain\User does not have required permissions.
- User Domain\User does not have required permissions
- service XXX does not support chkconfig
- service XXX does not support chkconfig
- service XXX does not support chkconfig
- 欢迎使用CSDN-markdown编辑器
- spring中各个jar的作用整理
- 用scikit-learn和pandas学习线性回归
- js,addEventListener参数传递
- Linux 计划任务 at
- 安卓7.1中添加服务,内核log出现Service xxx does not have a SELinux domain defined【转】
- To The Max
- apache2 服务器模块文件配置
- JDK各个版本的新特性jdk1.5-jdk1.8
- [C#]利用EasyHook创建安装本地钩子[教程翻译+理解]
- 转型
- [LeetCode]Integer to Roman
- 刚学if else 用的不好 各位大神不要见笑
- 移动端多指触屏事件兼容