-
-
Save munchycool/504c49b9a617b75273cdb0416ca996c0 to your computer and use it in GitHub Desktop.
Addressing selinux denials using audit2allow for android using logcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Goto android source code root and then execute following commands | |
| # Keep the logcat.log in the root | |
| export ANDROID_BUILD_TOP=$(pwd) | |
| ./external/selinux/prebuilts/bin/audit2allow -p out/target/product/{devicename}/root/sepolicy < logcat.log | |
| # Copy the generated rules in respective files in the device tree | |
| adb pull /sys/fs/selinux/policy | |
| adb logcat -b all -d | audit2allow -p policy | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment