I have a GPRS modem and built a custom OS with the RIL and I can get a signal display and I can send and receive SMS. What I can't get it GPRS data. I get a PPP error and it is due to a policy issue as I see the following in the logcat output.
If I then do a dmesg and grep for denied, I see these in the output.
So far I have tried a few things in the policy files but I still get this error.
Anyone have experience on how to setup the policy files for these?
Code: Select all
[ 881.924000] avc: granted { set } for property=net.gprs.ppp-exit scontext=u: r:rild:s0 tcontext=u:object_r:net_radio_prop:s0 tclass=property_service
[ 881.932000] init: Warning! Service pppd_gprs needs a SELinux domain defined; please fix!
If I then do a dmesg and grep for denied, I see these in the output.
Code: Select all
<36>[ 7.252000] type=1400 audit(1451636159.576:3): avc: denied { read write } for pid=201 comm="rild" name="ttyUSB2" dev="tmpfs" ino=7314 scontext=u:r:rild:s0 tcontext=u:object_r:device:s0 tclass=chr_file
<36>[ 7.272000] type=1400 audit(1451636159.576:4): avc: denied { open } for pid=201 comm="rild" name="ttyUSB2" dev="tmpfs" ino=7314 scontext=u:r:rild:s0 tcontext=u:object_r:device:s0 tclass=chr_file
<36>[ 7.288000] type=1400 audit(1451636159.576:5): avc: denied { ioctl } for pid=201 comm="rild" path="/dev/ttyUSB2" dev="tmpfs" ino=7314 scontext=u:r:rild:s0 tcontext=u:object_r:device:s0 tclass=chr_file
<4>[ 31.496000] avc: denied { set } for property=ctl.pppd_gprs scontext=u:r:rild:s0 tcontext=u:object_r:ctl_default_prop:s0 tclass=property_service
<36>[ 31.712000] type=1400 audit(1451636184.156:6): avc: denied { execute_no_trans } for pid=1190 comm="init.gprs-pppd" path="/system/bin/pppd" dev="mmcblk0p2" ino=341 scontext=u:r:init:s0 tcontext=u:object_r:ppp_exec:s0 tclass=file
<36>[ 40.228000] type=1400 audit(1451636192.676:7): avc: denied { execute_no_trans } for pid=1713 comm="init.gprs-pppd" path="/system/bin/pppd" dev="mmcblk0p2" ino=341 scontext=u:r:init:s0 tcontext=u:object_r:ppp_exec:s0 tclass=file
So far I have tried a few things in the policy files but I still get this error.
Anyone have experience on how to setup the policy files for these?