Out/Target/product/sabresd_6dq/System/bin - Permission Denied in Android 7.

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Out/Target/product/sabresd_6dq/System/bin - Permission Denied in Android 7.

Jump to solution
1,090 Views
ThanarajS
Contributor III

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.

Regards,
Thanaraj Subramani
Labels (4)
1 Solution
746 Views
gary_bisson
Senior Contributor III

Hi,

Actually you should try "androidboot.selinux=permissive" since disabled isn't supported in Nougat release.

Regards,

Gary

View solution in original post

6 Replies
746 Views
jimmychan
NXP TechSupport
NXP TechSupport

I think you used 'user' to build the source code. Please try to build the source code using 'userdebug'

pastedImage_1.png

for more information, please read the chapter 3.3 in Android User's Guide.

0 Kudos
746 Views
ThanarajS
Contributor III

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.

Regards,
Thanaraj Subramani
0 Kudos
746 Views
jimmychan
NXP TechSupport
NXP TechSupport

please also try to add “androidboot.selinux=disabled” in uboot’s bootargs.

0 Kudos
747 Views
gary_bisson
Senior Contributor III

Hi,

Actually you should try "androidboot.selinux=permissive" since disabled isn't supported in Nougat release.

Regards,

Gary

746 Views
jimmychan
NXP TechSupport
NXP TechSupport

Thanks Gary.

0 Kudos
746 Views
ThanarajS
Contributor III

Thanks Gary Bisson.

It was working for me.....

Regards,

Raj.

Regards,
Thanaraj Subramani
0 Kudos