android_system_core/rootdir
Tri Vo ff89b8d8c2 ueventd: duplicate /dev/ashmem
We want ashmem to only be used via libcutils API, with long-term goal
being deprecation of ashmem with memfd. To do that we route libcutils to
a new source of ashmem fds. We then phase out uses of /dev/ashmem that
doesn't go through libcutils using SELinux.

In Q, we introduced ashmemd as the source of ashmem fds to libcutils.
However, having a separate process and, consequently, binder hops to
handle /dev/ashmem results in performance/memory overhead.

To address the overhead, replace ashmemd with a duplicate of
/dev/ashmem. Name it /dev/ashmem<boot_id>, where boot_id is a random
number generated on each boot. This way we make sure that developers
don't accidentally depend on /dev/ashmem<boot_id>, as that name can't be
hardcoded.

Bug: 139855428
Test: writing "add"/"remove" to /sys/class/misc/ashmem/uevent correctly
adds/removes /dev/ashmem and /dev/ashmem/boot_id
Change-Id: I36d23116048bfcd99903ba46cc133161835a2cfa
2019-09-25 12:49:38 -07:00
..
avb Adding GSI public keys 2019-03-30 03:07:31 +00:00
etc Revert "Include com.android.runtime in the "runtime" linker namespace." 2019-09-19 19:11:47 +01:00
adb_debug.prop Adding adb_debug.prop into debug ramdisk 2019-04-23 11:13:46 +08:00
Android.mk Limit the compat symlinks to ART binaries. 2019-09-02 12:32:42 +00:00
asan.options
asan_extract.rc
asan_extract.sh
fsverity_init.sh Do not restrict .fs-verity keyring in debuggable build 2019-04-04 16:48:57 -07:00
init-debug.rc
init.environ.rc.in Update paths and names for the new ART APEX. 2019-08-30 17:47:31 +01:00
init.rc Simply reboot if the boringssl self test fails 2019-09-19 14:59:07 -07:00
init.usb.configfs.rc Remove sys.usb.ffs.mtp.ready property 2018-03-22 11:35:20 -07:00
init.usb.rc Notify the framework when an adb key is authorized 2019-05-09 16:05:40 -07:00
init.zygote32.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
init.zygote32_64.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
init.zygote64.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
init.zygote64_32.rc Don't defer zygote 2019-03-07 22:21:32 +09:00
ld_config_backward_compatibility_check.py Restore "Check if current ld.config.txt files is backward compatible" 2018-09-11 09:45:09 +09: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
update_and_install_ld_config.mk Add deps to files used by backwards compatibility checker 2019-09-19 17:49:44 +00:00