sync codebase

Bug: 162370942
Test: build pass

Change-Id: I73af3d6fa79a2dbf70f855274383cbf3d2af1745
Merged-In: I68126a1e1ae6193c85f6e0d9baf92a83023f436f
diff --git a/storage/file.te b/storage/file.te
new file mode 100644
index 0000000..ba7f362
--- /dev/null
+++ b/storage/file.te
@@ -0,0 +1 @@
+type debugfs_lpm, debugfs_type, fs_type;
diff --git a/storage/genfs_contexts b/storage/genfs_contexts
new file mode 100644
index 0000000..2f0b5bb
--- /dev/null
+++ b/storage/genfs_contexts
@@ -0,0 +1,2 @@
+genfscon debugfs /lpm_stats/stats					u:object_r:debugfs_lpm:s0
+genfscon sysfs /devices/platform/soc/1d84000.ufshc/power		u:object_r:sysfs_scsi_devices_0000:s0
diff --git a/storage/shell.te b/storage/shell.te
new file mode 100644
index 0000000..d8145f1
--- /dev/null
+++ b/storage/shell.te
@@ -0,0 +1,6 @@
+userdebug_or_eng(`
+  allow shell debugfs_lpm:file r_file_perms;
+  allow shell sysfs_scsi_devices_0000:file r_file_perms;
+  allow shell sysfs_mmc:dir r_dir_perms;
+')
+