[NETD-BPF#18] Mainline part of bpf code from netd

1. Add libnetd_updatable.so in com.android.tethering. The library is
loaded by netd. Currently, it mainly targets on a few functions which
access BPF maps. The functionality may extend in the future.

2. Attach gcroup progs from libnetd_updatable.so.

3. Move (privileged)TagSocket and untagSocket implementation to mainline
module. Combine privilegedTagSocket and untagSocket into a single
function.

4. Split related unit tests from netd_unit_test to
libnetd_updatable_unit_test as well.

Bug: 202086915
Test: cd system/netd; atest
Test: cd packages/modules/Connectivity/netd; atest

Change-Id: I6afe3eee0fbe7c5141bd9e1c24c756f7edc9db4f
6 files changed
tree: 0d1f60f4bc5f3783db2d80ce1bfb86df70305a23
  1. bpf_progs/
  2. client/
  3. include/
  4. libnetdbpf/
  5. netutils_wrappers/
  6. server/
  7. tests/
  8. .editorconfig
  9. Android.bp
  10. NOTICE
  11. OWNERS
  12. PREUPLOAD.cfg
  13. TEST_MAPPING