android - logcat中 "avc: denied { read } for name..."行是什么意思?

标签 android logcat android-logcat selinux

<分区>

我想知道 logcat 中的 avc: denied 消息。

W/RenderThread: type=1400 audit(0.0:631436): avc: denied { read } for name="perf_ioctl" dev="proc" ino=4026533695 scontext=u:r:untrusted_app_25:s0:c512,c768 tcontext=u:object_r:proc:s0 tclass=file permissive=0

这是什么意思?

最佳答案

这取决于 SELinux 限制。 你无法避免它。

简单来说:这意味着有“某人”试图“{read}”某些内容,但 SELinux 阻止了它,因为在 SELinux 的“受信任”列表中找不到该应用程序。 通常系统的一些特定和危险的位置被安装的应用程序限制,因此 SELinux 停止在/从这些位置读取/写入/执行东西。

(1) Enforcing SELinux 写入 Log AND 拒绝访问。 (2) Permissive SELinux 写入日志但允许访问。 (3) 禁用的 SELinux 不写入日志并允许访问。

为避免这种情况,您应该在更改有关 SELinux 的特定文件后重建 ROM,您必须在“受信任的区域”中添加您的应用程序。

您可以安装具有不同 SELinux 设置的不同内核。

关于android - logcat中 "avc: denied { read } for name..."行是什么意思?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51231326/

相关文章:

安卓java.lang.NullPointerException : println needs a message

android - JNI : Printing Matrix to logcat doesn't work

android - 如何独立于Eclipse开启logcat

android - adb logcat 挂起并显示 "waiting for device"消息

android - Realm 查询不更新我的适配器

java - 如何在android中将毫秒转换为日期格式?

Android模拟器和adb问题

android - AudioSource.VOICE_CALL 三星银河

java - 每当执行应用程序时,它在 android 模拟器中显示为空白

android - android 日志存储多长时间?