How to give sepolicy permissions for custom binary

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

How to give sepolicy permissions for custom binary

1,005件の閲覧回数
susangracerapak
Contributor II

Hi ,

 I am working on Android Oreo on i.Mx6 sabresd platform. I am using custom application [ioctl] which will enable the wifi protocol. From the custom application , I am unable to create a socket ,

following is the custom app code for socket,

if ((sfd = socket(AF_INET, SOCK_DGRAM, 0)) < 0)
     {
                  printf("\n **********socket sfd is %d \n", sfd,);
                  return 2;
        }

Logcat output is: **********socket sfd is -1

Please someone help me how to add sepolicy for this?

Regards

Susan

ラベル(2)
0 件の賞賛
返信
0 返答(返信)