[英]Read SELinux in Android device
I added few SELinux pemission in android/system/sepolicy
.我在
android/system/sepolicy
添加了一些 SELinux android/system/sepolicy
。 After build Image, I want to check that the permission is added in build.构建图像后,我想检查是否在构建中添加了权限。 How can I check the added SELinux after flashing the device?
刷机后如何查看添加的SELinux?
You can pull the policy file and analyze it.您可以拉取策略文件并对其进行分析。
adb pull /sys/fs/selinux/policy
But if you added it to system/sepolicy
and built/flashed the images, I don't see how they could not have been applied.但是如果你将它添加到
system/sepolicy
并构建system/sepolicy
图像,我看不出它们是如何被应用的。
If you're still seeing denials even after adding the allow rules, it's either a) There is another denial that appeared after the last allow b) There is also MSL security at hand.如果您在添加允许规则后仍然看到拒绝,则可能是 a) 在最后一个允许之后出现另一个拒绝 b) 还有 MSL 安全性。 See this answer here: https://stackoverflow.com/a/45551191/3801327
在此处查看此答案: https : //stackoverflow.com/a/45551191/3801327
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.