ronnie
2022-10-14 1504bb53e29d3d46222c0b3ea994fc494b48e153
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
typeattribute vendor_init data_between_core_and_vendor_violators;
 
allow vendor_init proc_uid_cpupower:file write;
 
# symlink /sdcard to backing block
 
allow vendor_init debugfs_sps:dir search;
allow vendor_init debugfs_sps:file w_file_perms;
 
allow vendor_init {
  adb_keys_file
  dhcp_data_file
  display_data_file
  location_data_file
  media_rw_data_file
  netmgr_data_file
  perfd_data_file
  preloads_data_file
  preloads_media_file
  radio_data_file
  smlog_dump_file
  system_data_file
  time_data_file
  tombstone_data_file
  wifi_data_file
}:dir { create search getattr open read setattr ioctl write add_name remove_name rmdir relabelfrom };
 
allow vendor_init {
  adb_keys_file
  location_data_file
  perfd_data_file
  radio_data_file
}:file { create getattr open read write setattr relabelfrom unlink };
 
allow vendor_init {
  location_data_file
}:sock_file setattr;
 
set_prop(vendor_init, thermal_prop)
set_prop(vendor_init, vendor_charge_prop)
 
dontaudit vendor_init unlabeled:dir getattr;
dontaudit vendor_init unlabeled:file getattr;