Add debugfs support for cuttlefish.

Mounts debugfs and chmods to 0755 just like a real device.
Bug: 152792812
Test: Build cuttlefish with KASAN+KCOV, test KCOV.

Change-Id: I9ff9a60a1a357e5a3157516d889c0971fe08e0c4
Merged-In: I9ff9a60a1a357e5a3157516d889c0971fe08e0c4
diff --git a/shared/config/init.vendor.rc b/shared/config/init.vendor.rc
index 2e5d3af..7c9be5d 100644
--- a/shared/config/init.vendor.rc
+++ b/shared/config/init.vendor.rc
@@ -9,6 +9,10 @@
 
     mount tracefs tracefs /sys/kernel/tracing
 
+    # For KCOV
+    mount debugfs debugfs /sys/kernel/debug
+    chmod 0755 /sys/kernel/debug
+
     setprop ro.sf.lcd_density ${ro.boot.lcd_density}
     setprop ro.hardware.egl ${ro.boot.hardware.egl}
     setprop ro.hardware.gralloc ${ro.boot.hardware.gralloc}