title: android-ndk SOCK_RAW permissions
body: <p>I have so task that make android device talk to some device that uses ethernet directly. On linux I can use </p>
  
  <pre><code>setcap CAP_NET_RAW+ep /path/to/your/program-file
  </code></pre>
  
  <p>to setup permissions. </p>
  
  <p>But I can't find how to make it under android.</p>
  
  <p>I have rooted device and I can edit ueventrc.d</p>
  
  <p>My program will run only on my device and I can customize platform.</p>
  
  <p>I use NDK-r8. </p>