欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  移动技术

android avc 编译报错neverallow问题查找

程序员文章站 2022-06-27 18:39:48
在修改avc后,有时候编译会报错neverallow。这个具体是在什么地方定义的呢目录:system/sepolicy/private/domain.te# Limit ability to ptrace or read sensitive /proc/pid files of processes# with other UIDs to these whitelisted domains.neverallow { domain -vold userdebug_or_eng(`-llk...

在修改avc后,有时候编译会报错neverallow。这个具体是在什么地方定义的呢

目录:
system/sepolicy/private/
domain.te

# Limit ability to ptrace or read sensitive /proc/pid files of processes # with other UIDs to these whitelisted domains. neverallow { domain
  -vold
  userdebug_or_eng(`-llkd') -dumpstate
  userdebug_or_eng(`-incidentd')
  -storaged
  -system_server
  userdebug_or_eng(`-perfprofd') } self:global_capability_class_set sys_ptrace; ....

coredomain.te

neverallow { coredomain # for chowning -init # generic access to sysfs_type -ueventd
    -vold # meig:jicong.wang add for cit -system_app } sysfs_leds:file *; ')

如果修改了上面两个文件
prebuilts/api 也要相应的修改。不然会报错

本文地址:https://blog.csdn.net/wangjicong_215/article/details/107912117

相关标签: Android 编译