Correctly label data types
Data outside /data/vendor must have the core_data_file_type
attribute.
Test: build (this is a build time test)
Bug: 34980020
Change-Id: I1a26587e5c71e6e6d077eef1a43a4274493f77db
diff --git a/sepolicy/file.te b/sepolicy/file.te
index 1b98df5..bea5bf6 100644
--- a/sepolicy/file.te
+++ b/sepolicy/file.te
@@ -1,12 +1,12 @@
type cnd_socket, file_type;
-type diag_logs, file_type, data_file_type, mlstrustedobject;
+type diag_logs, file_type, data_file_type, core_data_file_type, mlstrustedobject;
# Default type for anything under /firmware
type firmware_file, fs_type, contextmount_type;
type ims_socket, file_type;
type irqbalance_socket, file_type;
-type perfd_data_file, file_type, data_file_type;
+type perfd_data_file, file_type, data_file_type, core_data_file_type;
type persist_file, file_type;
type persist_audio_file, file_type;
type persist_data_file, file_type;
@@ -16,7 +16,7 @@
type proc_irq, fs_type;
type proc_kernel_sched, fs_type;
type qmuxd_socket, file_type;
-type ssr_data_file, file_type, data_file_type;
+type ssr_data_file, file_type, data_file_type, core_data_file_type;
type sysfs_gpu_tuning, sysfs_type, fs_type;
type sysfs_hal_gralloc, sysfs_type, fs_type;
type sysfs_fingerprintd, sysfs_type, fs_type;
@@ -29,9 +29,9 @@
type sysfs_smdcntl_open_timeout, sysfs_type, fs_type;
type sysfs_surfaceflinger, fs_type, sysfs_type;
type thermald_socket, file_type;
-type time_data_file, file_type, data_file_type;
-type display_data_file, file_type, data_file_type;
-type cnd_data_file, file_type, data_file_type;
+type time_data_file, file_type, data_file_type, core_data_file_type;
+type display_data_file, file_type, data_file_type, core_data_file_type;
+type cnd_data_file, file_type, data_file_type, core_data_file_type;
type sysfs_wifi_sar, fs_type, sysfs_type;
type sysfs_lcd_mipi, fs_type, sysfs_type;