简体   繁体   中英

Read SELinux in Android device

I added few SELinux pemission in 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?

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.

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. See this answer here: https://stackoverflow.com/a/45551191/3801327

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM