Skip to content

Instantly share code, notes, and snippets.

@Dixzz
Forked from Nihhaar/audit2allow-sepolicy-android
Created December 28, 2018 18:27
Show Gist options
  • Save Dixzz/d201fb3d33768db9c764665189b34dec to your computer and use it in GitHub Desktop.
Save Dixzz/d201fb3d33768db9c764665189b34dec to your computer and use it in GitHub Desktop.
Addressing selinux denials using audit2allow for android using logcat
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment