Unable to give permissions to socket through .te file in Android oreo

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unable to give permissions to socket through .te file in Android oreo

1,468件の閲覧回数
abhilashyarrago
Contributor I
Hi, 

I m trying to execute a custom binary through popen  for enabling the wifi protocol in Android Oreo.

popen("/vendor/bin/hw/onebox_util rpine0 enable_protocol 1", "r");

I'm getting the error as "avc : denied {execute_no_trans}" .Please find the attached logcat image.
Someone please help me , how to give the permissions for "onebox_util" using sepolicy?
and also , how to give permissions for creating socket through "onebox_util"

Regards
Abhilash
0 件の賞賛
返信
1 返信

1,350件の閲覧回数
diegoadrian
NXP Employee
NXP Employee

Hello,

I apologize for the delay,

Have you tried to perform the command as a root user?

Best Regards,

Diego.

0 件の賞賛
返信