1type gxp_logging, domain;
2type gxp_logging_exec, exec_type, vendor_file_type, file_type;
3init_daemon_domain(gxp_logging)
4
5# The logging service accesses /dev/gxp
6allow gxp_logging gxp_device:chr_file rw_file_perms;
7
8# Allow logging service to access /sys/class/gxp
9allow gxp_logging sysfs_gxp:dir search;
10allow gxp_logging sysfs_gxp:file rw_file_perms;
11
12# Allow logging service to log to stats service for reporting metrics.
13allow gxp_logging fwk_stats_service:service_manager find;
14binder_call(gxp_logging, system_server);
15binder_use(gxp_logging)
16
17# Allow logging service to read gxp properties.
18get_prop(gxp_logging, vendor_gxp_prop)
19
20# Allow gxp tracing service to send packets to Perfetto
21userdebug_or_eng(`perfetto_producer(gxp_logging)')
22