Add sepolicy for gxp_logging service to report metrics [RESTRICT AUTOMERGE] am: 100dd2387d
Original change: https://googleplex-android-review.googlesource.com/c/device/google/zuma-sepolicy/+/23468178 Change-Id: Ic93c5c244e98865bfd567238fcc916ac04d9811d Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
a95fa016e1
9 changed files with 33 additions and 1 deletions
3
vendor/debug_camera_app.te
vendored
3
vendor/debug_camera_app.te
vendored
|
@ -11,8 +11,9 @@ userdebug_or_eng(`
|
||||||
allow debug_camera_app mediametrics_service:service_manager find;
|
allow debug_camera_app mediametrics_service:service_manager find;
|
||||||
allow debug_camera_app mediaserver_service:service_manager find;
|
allow debug_camera_app mediaserver_service:service_manager find;
|
||||||
|
|
||||||
# Allows GCA-Eng & GCA-Next access the GXP device.
|
# Allows GCA-Eng & GCA-Next access the GXP device and properties.
|
||||||
allow debug_camera_app gxp_device:chr_file rw_file_perms;
|
allow debug_camera_app gxp_device:chr_file rw_file_perms;
|
||||||
|
get_prop(debug_camera_app, vendor_gxp_prop)
|
||||||
|
|
||||||
# Allows GCA-Eng & GCA-Next to find and access the EdgeTPU.
|
# Allows GCA-Eng & GCA-Next to find and access the EdgeTPU.
|
||||||
allow debug_camera_app edgetpu_app_service:service_manager find;
|
allow debug_camera_app edgetpu_app_service:service_manager find;
|
||||||
|
|
3
vendor/file.te
vendored
3
vendor/file.te
vendored
|
@ -15,6 +15,9 @@ type sysfs_aoc_udfps, sysfs_type, fs_type;
|
||||||
# Trusty
|
# Trusty
|
||||||
type sysfs_trusty, sysfs_type, fs_type;
|
type sysfs_trusty, sysfs_type, fs_type;
|
||||||
|
|
||||||
|
# Gxp sysfs file
|
||||||
|
type sysfs_gxp, sysfs_type, fs_type;
|
||||||
|
|
||||||
# mount FS
|
# mount FS
|
||||||
allow proc_vendor_sched proc:filesystem associate;
|
allow proc_vendor_sched proc:filesystem associate;
|
||||||
allow bootdevice_sysdev sysfs:filesystem associate;
|
allow bootdevice_sysdev sysfs:filesystem associate;
|
||||||
|
|
3
vendor/genfs_contexts
vendored
3
vendor/genfs_contexts
vendored
|
@ -23,6 +23,9 @@ genfscon sysfs /devices/platform/cpupm/cpupm/cpd_cl2_target_residency
|
||||||
# EdgeTPU
|
# EdgeTPU
|
||||||
genfscon sysfs /devices/platform/1a000000.rio u:object_r:sysfs_edgetpu:s0
|
genfscon sysfs /devices/platform/1a000000.rio u:object_r:sysfs_edgetpu:s0
|
||||||
|
|
||||||
|
# Gxp
|
||||||
|
genfscon sysfs /devices/platform/20c00000.callisto u:object_r:sysfs_gxp:s0
|
||||||
|
|
||||||
# debugfs
|
# debugfs
|
||||||
genfscon debugfs /google_charger u:object_r:vendor_charger_debugfs:s0
|
genfscon debugfs /google_charger u:object_r:vendor_charger_debugfs:s0
|
||||||
genfscon debugfs /max77729_pmic u:object_r:vendor_charger_debugfs:s0
|
genfscon debugfs /max77729_pmic u:object_r:vendor_charger_debugfs:s0
|
||||||
|
|
3
vendor/google_camera_app.te
vendored
3
vendor/google_camera_app.te
vendored
|
@ -12,6 +12,9 @@ allow google_camera_app mediaserver_service:service_manager find;
|
||||||
# Allows GCA to acccess the GXP device.
|
# Allows GCA to acccess the GXP device.
|
||||||
allow google_camera_app gxp_device:chr_file rw_file_perms;
|
allow google_camera_app gxp_device:chr_file rw_file_perms;
|
||||||
|
|
||||||
|
# Allow GCA to access the GXP properies.
|
||||||
|
get_prop(google_camera_app, vendor_gxp_prop)
|
||||||
|
|
||||||
# Allows GCA to access the PowerHAL.
|
# Allows GCA to access the PowerHAL.
|
||||||
hal_client_domain(google_camera_app, hal_power)
|
hal_client_domain(google_camera_app, hal_power)
|
||||||
|
|
||||||
|
|
12
vendor/gxp_logging.te
vendored
12
vendor/gxp_logging.te
vendored
|
@ -5,6 +5,18 @@ init_daemon_domain(gxp_logging)
|
||||||
# The logging service accesses /dev/gxp
|
# The logging service accesses /dev/gxp
|
||||||
allow gxp_logging gxp_device:chr_file rw_file_perms;
|
allow gxp_logging gxp_device:chr_file rw_file_perms;
|
||||||
|
|
||||||
|
# Allow logging service to access /sys/class/gxp
|
||||||
|
allow gxp_logging sysfs_gxp:dir search;
|
||||||
|
allow gxp_logging sysfs_gxp:file rw_file_perms;
|
||||||
|
|
||||||
|
# Allow logging service to log to stats service for reporting metrics.
|
||||||
|
allow gxp_logging fwk_stats_service:service_manager find;
|
||||||
|
binder_call(gxp_logging, system_server);
|
||||||
|
binder_use(gxp_logging)
|
||||||
|
|
||||||
|
# Allow logging service to read gxp properties.
|
||||||
|
get_prop(gxp_logging, vendor_gxp_prop)
|
||||||
|
|
||||||
# Allow gxp tracing service to send packets to Perfetto
|
# Allow gxp tracing service to send packets to Perfetto
|
||||||
userdebug_or_eng(`perfetto_producer(gxp_logging)')
|
userdebug_or_eng(`perfetto_producer(gxp_logging)')
|
||||||
|
|
||||||
|
|
1
vendor/hal_camera_default.te
vendored
1
vendor/hal_camera_default.te
vendored
|
@ -31,6 +31,7 @@ allow hal_camera_default vendor_camera_data_file:file create_file_perms;
|
||||||
|
|
||||||
# Allow the camera hal to access the GXP device.
|
# Allow the camera hal to access the GXP device.
|
||||||
allow hal_camera_default gxp_device:chr_file rw_file_perms;
|
allow hal_camera_default gxp_device:chr_file rw_file_perms;
|
||||||
|
get_prop(hal_camera_default, vendor_gxp_prop)
|
||||||
|
|
||||||
# Allow creating dump files for debugging in non-release builds
|
# Allow creating dump files for debugging in non-release builds
|
||||||
userdebug_or_eng(`
|
userdebug_or_eng(`
|
||||||
|
|
3
vendor/property.te
vendored
3
vendor/property.te
vendored
|
@ -16,3 +16,6 @@ vendor_restricted_prop(vendor_arm_runtime_option_prop)
|
||||||
|
|
||||||
# ArmNN
|
# ArmNN
|
||||||
vendor_internal_prop(vendor_armnn_config_prop)
|
vendor_internal_prop(vendor_armnn_config_prop)
|
||||||
|
|
||||||
|
# Gxp properties
|
||||||
|
system_vendor_config_prop(vendor_gxp_prop)
|
||||||
|
|
3
vendor/property_contexts
vendored
3
vendor/property_contexts
vendored
|
@ -23,3 +23,6 @@ vendor.mali. u:object_r:vendor_arm_runtime_option_
|
||||||
|
|
||||||
# ArmNN configuration
|
# ArmNN configuration
|
||||||
ro.vendor.armnn. u:object_r:vendor_armnn_config_prop:s0 prefix
|
ro.vendor.armnn. u:object_r:vendor_armnn_config_prop:s0 prefix
|
||||||
|
|
||||||
|
# Gxp
|
||||||
|
vendor.gxp. u:object_r:vendor_gxp_prop:s0
|
||||||
|
|
3
vendor/vendor_init.te
vendored
3
vendor/vendor_init.te
vendored
|
@ -39,3 +39,6 @@ set_prop(vendor_init, vendor_armnn_config_prop)
|
||||||
|
|
||||||
# MM
|
# MM
|
||||||
allow vendor_init proc_watermark_scale_factor:file w_file_perms;
|
allow vendor_init proc_watermark_scale_factor:file w_file_perms;
|
||||||
|
|
||||||
|
# Gxp
|
||||||
|
set_prop(vendor_init, vendor_gxp_prop)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue