Skip to content

Instantly share code, notes, and snippets.

@steadfasterX
Last active May 12, 2019 18:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save steadfasterX/8f05f6f222d8ed4e2bb8b0883b1af282 to your computer and use it in GitHub Desktop.
Save steadfasterX/8f05f6f222d8ed4e2bb8b0883b1af282 to your computer and use it in GitHub Desktop.
selinux: permissive or enforcing?
adb logcat -b kernel |grep avc:
> 05-12 20:10:27.665 0 0 E [ 16.154118 / 05-12 18:10:27.658][1] selinux: avc: denied { set } for
property=ro.bluetooth.sap pid=3540 uid=0 gid=0 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:default_prop:s0
tclass=property_service permissive=1
--------------------------
adb shell getenforce
> Permissive
########################################################################
adb logcat -b kernel |grep avc:
> 05-12 20:10:27.665 0 0 E [ 16.154118 / 05-12 18:10:27.658][1] selinux: avc: denied { set } for
property=ro.bluetooth.sap pid=3540 uid=0 gid=0 scontext=u:r:qti_init_shell:s0 tcontext=u:object_r:default_prop:s0
tclass=property_service permissive=0
--------------------------
adb shell getenforce
> Enforcing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment