android_system_core/rootdir
Maciej Żenczykowski 00a21e3d54 symlink /dev/net/tun -> ../tun
This is the expected location on Linux and this makes 'ip tuntap' work.

Before:
  vsoc_x86_64:/ # ip tuntap add dev tun0 mode tun
  open: No such file or directory
  vsoc_x86_64:/ # ip tuntap add dev tap0 mode tap
  open: No such file or directory
  vsoc_x86_64:/ # ip tuntap list

After:
  vsoc_x86_64:/ # ip tuntap add dev tun0 mode tun
  vsoc_x86_64:/ # ip tuntap add dev tap0 mode tap
  vsoc_x86_64:/ # ip tuntap list
  tap0: tap UNKNOWN_FLAGS:800
  tun0: tun UNKNOWN_FLAGS:800

  $ adbz shell ls -ldZ / /dev /dev/tun /dev/net /dev/net/tun
  drwxr-xr-x 25 root   root u:object_r:rootfs:s0         4096 2020-01-25 09:48 /
  drwxr-xr-x 21 root   root u:object_r:device:s0         1240 2020-01-25 09:48 /dev
  drwxr-xr-x  2 root   root u:object_r:device:s0           60 2020-01-25 09:48 /dev/net
  lrwxrwxrwx  1 root   root u:object_r:device:s0            6 2020-01-25 09:48 /dev/net/tun -> ../tun
  crw-rw----  1 system vpn  u:object_r:tun_device:s0  10, 200 2020-01-25 09:48 /dev/tun

Test: see above
Signed-off-by: Maciej Żenczykowski <maze@google.com>
Change-Id: I2aa215711454ce4f8a0ef1f34c17621629060fa1
2020-01-30 03:51:33 +00:00
..
avb Adding the AVB public key for Q-Developer-GSI 2019-12-10 13:02:31 +08:00
etc Use generated linker config only 2019-12-24 14:18:53 +09:00
adb_debug.prop Adding adb_debug.prop into debug ramdisk 2019-04-23 11:13:46 +08:00
Android.bp Move init and ueventd scripts from / to /system/etc 2019-11-08 10:15:49 -08:00
Android.mk Merge "Set Clang coverage environment variables." 2020-01-22 22:34:35 +00:00
asan.options Include asan options from data partition. 2017-08-09 15:32:23 -07:00
asan_extract.rc
asan_extract.sh
init-debug.rc
init.environ.rc.in Set Clang coverage environment variables. 2020-01-13 14:38:15 -08:00
init.rc symlink /dev/net/tun -> ../tun 2020-01-30 03:51:33 +00:00
init.usb.configfs.rc Remove sys.usb.ffs.mtp.ready property 2018-03-22 11:35:20 -07:00
init.usb.rc Move setprop sys.usb.configfs 0 to on init action 2019-12-10 19:16:15 +00:00
init.zygote32.rc Remove references to /sys/android_power/* 2019-10-01 13:30:41 -07:00
init.zygote32_64.rc Remove references to /sys/android_power/* 2019-10-01 13:30:41 -07:00
init.zygote64.rc Remove references to /sys/android_power/* 2019-10-01 13:30:41 -07:00
init.zygote64_32.rc Remove references to /sys/android_power/* 2019-10-01 13:30:41 -07:00
OWNERS rootdir: add ccross to OWNERS. 2018-10-15 14:18:04 -07:00
ueventd.rc ueventd: duplicate /dev/ashmem 2019-09-25 12:49:38 -07:00