2022-08-14 15:07:12 +02:00
|
|
|
# ==============================================
|
|
|
|
# Common SEPolicy Rule
|
|
|
|
# ==============================================
|
|
|
|
|
|
|
|
# Grant read access to mtk core property type which represents all
|
|
|
|
# mtk properties except those with ctl_xxx prefix.
|
|
|
|
# Align Google change: f01453ad453b29dd723838984ea03978167491e5
|
|
|
|
get_prop(domain, mtk_core_property_type)
|
|
|
|
|
|
|
|
# Allow all processes to read /sys/bus/platform/drivers/dev_info/dev_info
|
|
|
|
# as it is a public interface for all processes to read some OTP data.
|
|
|
|
allow {
|
|
|
|
domain
|
2023-09-03 10:22:36 +05:30
|
|
|
-isolated_app_all
|
2022-08-14 15:07:12 +02:00
|
|
|
} sysfs_devinfo:file r_file_perms;
|
|
|
|
|
|
|
|
# Date : W18.45
|
|
|
|
# Operation : MTK gpu enable drvb
|
|
|
|
# Purpose : drvb need dgb2 permission
|
|
|
|
allow {
|
|
|
|
domain
|
2023-09-03 10:22:36 +05:30
|
|
|
-isolated_app_all
|
2022-08-20 12:05:57 +01:00
|
|
|
} sysfs_gpu_mtk:file r_file_perms;
|