From 48577c8bdd8a7fa9fad4cbbaa3a9989e5166309e Mon Sep 17 00:00:00 2001 From: dev-harsh1998 Date: Thu, 29 Jun 2017 20:05:46 +0530 Subject: sepolicy: fix radio denials * Addresses the following denial: <5>[ 508.313455] type=1400 audit(1389033492.145:78): avc: denied { search } for pid=3932 comm=QcRilReceiver name=qmux_radio dev=tmpfs ino=6056 scontext=u:r:radio:s0 tcontext=u:object_r:qmuxd_socket:s0 tclass=dir And the following logcat error messages: E/QcrilMsgTunnelSocket( 3916): IOExceptionjava.io.IOException: Permission deniedReason: Permission denied E/QcrilMsgTunnelSocket( 3916): Couldn't find 'qmux_radio/rild_oem0' socket after 8 times, continuing to retry silently --- sepolicy/radio.te | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 sepolicy/radio.te diff --git a/sepolicy/radio.te b/sepolicy/radio.te new file mode 100644 index 0000000..1730d04 --- /dev/null +++ b/sepolicy/radio.te @@ -0,0 +1,4 @@ +qmux_socket(radio) +allow radio system_app_data_file:dir getattr; +allow radio persist_file:dir rw_dir_perms; +allow radio persist_file:file { getattr open }; -- cgit v1.2.3