diff --git a/whitechapel_pro/file.te b/whitechapel_pro/file.te index 9852b023..740eebb9 100644 --- a/whitechapel_pro/file.te +++ b/whitechapel_pro/file.te @@ -43,6 +43,7 @@ type sysfs_acpm_stats, sysfs_type, fs_type; type sysfs_wifi, sysfs_type, fs_type; type sysfs_exynos_bts, sysfs_type, fs_type; type sysfs_exynos_bts_stats, sysfs_type, fs_type; +type sysfs_exynos_pcie_stats, sysfs_type, fs_type; type sysfs_bcmdhd, sysfs_type, fs_type; type sysfs_chargelevel, sysfs_type, fs_type; type sysfs_mfc, sysfs_type, fs_type; diff --git a/whitechapel_pro/genfs_contexts b/whitechapel_pro/genfs_contexts index a1e00e11..68caba73 100644 --- a/whitechapel_pro/genfs_contexts +++ b/whitechapel_pro/genfs_contexts @@ -377,6 +377,10 @@ genfscon sysfs /devices/platform/100b0000.AUR u:obje genfscon sysfs /thermal_zone14/mode u:object_r:sysfs_thermal:s0 +# PCIe link +genfscon sysfs /devices/platform/14520000.pcie/link_stats u:object_r:sysfs_exynos_pcie_stats:s0 +genfscon sysfs /devices/platform/11920000.pcie/link_stats u:object_r:sysfs_exynos_pcie_stats:s0 + # Camera genfscon sysfs /devices/platform/17000030.devfreq_intcam/devfreq/17000030.devfreq_intcam/min_freq u:object_r:sysfs_camera:s0 genfscon sysfs /devices/platform/17000060.devfreq_tnr/devfreq/17000060.devfreq_tnr/max_freq u:object_r:sysfs_camera:s0 diff --git a/whitechapel_pro/hal_dumpstate_default.te b/whitechapel_pro/hal_dumpstate_default.te index 80116c44..23832cf1 100644 --- a/whitechapel_pro/hal_dumpstate_default.te +++ b/whitechapel_pro/hal_dumpstate_default.te @@ -12,6 +12,9 @@ allow hal_dumpstate_default vendor_gps_file:file r_file_perms; allow hal_dumpstate_default sysfs_exynos_bts:dir r_dir_perms; allow hal_dumpstate_default sysfs_exynos_bts_stats:file r_file_perms; +allow hal_dumpstate_default sysfs_exynos_pcie_stats:dir r_dir_perms; +allow hal_dumpstate_default sysfs_exynos_pcie_stats:file r_file_perms; + allow hal_dumpstate_default sscoredump_vendor_data_coredump_file:dir r_dir_perms; allow hal_dumpstate_default sscoredump_vendor_data_coredump_file:file r_file_perms; diff --git a/whitechapel_pro/pixelstats_vendor.te b/whitechapel_pro/pixelstats_vendor.te index b5b1594f..23bff0ba 100644 --- a/whitechapel_pro/pixelstats_vendor.te +++ b/whitechapel_pro/pixelstats_vendor.te @@ -31,6 +31,10 @@ allow pixelstats_vendor sysfs_thermal:lnk_file r_file_perms; allow pixelstats_vendor sysfs_bcl:dir search; allow pixelstats_vendor sysfs_bcl:file r_file_perms; +# PCIe statistics +allow pixelstats_vendor sysfs_exynos_pcie_stats:dir search; +allow pixelstats_vendor sysfs_exynos_pcie_stats:file rw_file_perms; + #perf-metrics r_dir_file(pixelstats_vendor, sysfs_vendor_metrics) allow pixelstats_vendor sysfs_vendor_metrics:lnk_file r_file_perms;