Hi All,
I had compiled Android 7 Source code and checking the Wi-Fi related functionality. I am not able to access Any system/bin commands [ifconfig,....etc], its throwing error as Permission denied.
root@sabresd_6dq:/system/bin # ifconfig -a
ifconfig: type=1400 audit(811.510:56): avc: denied { net_raw } for pid=1239 comm="ifconfig" capability=13 scontext=u:r:shell:s0 tcontext=u:r:s0
socket 2 0: Permission denied
1|root@sabresd_6dq:/system/bin #
How to change System/bin permission in Android 7 Source?.
Thanks!!!
Regards,
Raj.
Solved! Go to Solution.
Hi,
Actually you should try "androidboot.selinux=permissive" since disabled isn't supported in Nougat release.
Regards,
Gary
I think you used 'user' to build the source code. Please try to build the source code using 'userdebug'
for more information, please read the chapter 3.3 in Android User's Guide.
Hi Jimmychan,
I tried with userdebug option even though its throwing same permission denied error.
Is there any other way to change permission ?
Please help me to fix this issue....
Thanks
Regrads,
Raj.
please also try to add “androidboot.selinux=disabled” in uboot’s bootargs.
Hi,
Actually you should try "androidboot.selinux=permissive" since disabled isn't supported in Nougat release.
Regards,
Gary
Thanks Gary.
Thanks Gary Bisson.
It was working for me.....
Regards,
Raj.