mtpd: Use capabilities instead of GIDs.

The 'net_admin'/'net_raw' GIDs are an Android addition that does not
exist upstream. Replace them with capabilities which are an upstream
feature. This will allow us to drop those kernel patches.

Bug: 33938230
Test: 'start mtpd', 'cat /proc/`pgrep mtpd`/status | grep Cap'.
Test: "Cap" lines show correct mask: 0000000000003000
Test: Add a VPN, enable it, mtpd starts correctly.

Change-Id: I734ed1ae38e6d7d6a8ba393395a5cdb7c98dfe9e
1 file changed
tree: b811365f83e93be3f9aac51bdb6e8abf12f2be0e
  1. Android.bp
  2. l2tp.c
  3. MODULE_LICENSE_APACHE2
  4. mtpd.c
  5. mtpd.h
  6. mtpd.rc
  7. NOTICE
  8. pptp.c