How to give sepolicy permissions for custom binary

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

How to give sepolicy permissions for custom binary

636 Views
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

Labels (2)
0 Kudos
Reply
0 Replies