Service rootservice does not have a SELinux domain defined
生活随笔
收集整理的這篇文章主要介紹了
Service rootservice does not have a SELinux domain defined
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
新增一個SELINUX啟動的時候出現問題
新增如下
service rootservice /system/bin/rootserviceuser rootgroup rootdisabledoneshoton property:sys.boot_completed=1start rootservice具體補丁請查看文件
鏈接:https://pan.baidu.com/s/1AlBuXfdn-xFRwDwmsX4svA
提取碼:bbyi
發現問題
最后發現在 device/rockchip/common/里面少打了一行代碼
diff --git a/sepolicy/rootservice.te b/sepolicy/rootservice.te new file mode 100644 index 0000000..e1b4198 --- /dev/null +++ b/sepolicy/rootservice.te @@ -0,0 +1,5 @@ +type rootservice, domain, mlstrustedsubject; +type rootservice_exec, exec_type, file_type; + +diff --git a/sepolicy/rootservice.te b/sepolicy/rootservice.te new file mode 100644 index 0000000..e1b4198 --- /dev/null +++ b/sepolicy/rootservice.te @@ -0,0 +1,5 @@ +type rootservice, domain, mlstrustedsubject; +type rootservice_exec, exec_type, file_type; + +init_daemon_domain(rootservice) + +少打了init_daemon_domain(rootservice)
總結
以上是生活随笔為你收集整理的Service rootservice does not have a SELinux domain defined的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Centos/Linux 源码安装wir
- 下一篇: 10大黑客专用的 Linux 操作系统,