Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save munchycool/504c49b9a617b75273cdb0416ca996c0 to your computer and use it in GitHub Desktop.

Select an option

Save munchycool/504c49b9a617b75273cdb0416ca996c0 to your computer and use it in GitHub Desktop.

Revisions

  1. munchycool revised this gist Jun 20, 2018. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion audit2allow-sepolicy-android
    Original file line number Diff line number Diff line change
    @@ -4,4 +4,10 @@
    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
    # 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

  2. @Nihhaar Nihhaar created this gist Aug 22, 2017.
    7 changes: 7 additions & 0 deletions audit2allow-sepolicy-android
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # 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