summaryrefslogtreecommitdiff
path: root/vendor/google/modem_diagnostics.te
blob: a01d3af00243be8ef2675588b252456bc90bae0f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
type modem_diagnostic_app, domain;
type modem_diagnostic_app_tmpfs, file_type;

userdebug_or_eng(`
  app_domain(modem_diagnostic_app)
  net_domain(modem_diagnostic_app)

  allow modem_diagnostic_app app_api_service:service_manager find;
  allow modem_diagnostic_app surfaceflinger_service:service_manager find;
  allow modem_diagnostic_app radio_service:service_manager find;
  allow modem_diagnostic_app diag_device:chr_file rw_file_perms;
  allow modem_diagnostic_app sysfs_esim:file r_file_perms;

  allow modem_diagnostic_app ssr_log_file:dir r_dir_perms;
  allow modem_diagnostic_app ssr_log_file:file r_file_perms;

  unix_socket_connect(modem_diagnostic_app, diag, qlogd);

  set_prop(modem_diagnostic_app, vendor_modem_diag_prop)
  set_prop(modem_diagnostic_app, radio_control_prop)

  allow modem_diagnostic_app sysfs_batteryinfo:file r_file_perms;
  allow modem_diagnostic_app sysfs_batteryinfo:dir search;
')