Home | History | Annotate | Download | only in common
      1 allow vendor_init debugfs_clk:file w_file_perms;
      2 allow vendor_init proc_uid_cpupower:file w_file_perms;
      3 allow vendor_init proc_sysctl_autogroup:file w_file_perms;
      4 allow vendor_init proc_sysctl_schedboost:file w_file_perms;
      5 allow vendor_init proc_irq:file w_file_perms;
      6 allow vendor_init proc_swappiness:file w_file_perms;
      7 allow vendor_init camera_vendor_data_file:dir create_dir_perms;
      8 dontaudit vendor_init kernel:system module_request;
      9 
     10 userdebug_or_eng(`
     11   # Allow vendor_init to write to /proc/sysrq-trigger on userdebug and eng builds
     12   allow vendor_init proc_sysrq:file w_file_perms;
     13   # Allow vendor_init to write vendor_tcpdump_log_prop on userdebug or eng ROM
     14   set_prop(vendor_init, vendor_tcpdump_log_prop)
     15 ')
     16 
     17 set_prop(vendor_init, vendor_camera_prop)
     18 set_prop(vendor_init, factory_ota_prop)
     19 set_prop(vendor_init, power_prop)
     20 set_prop(vendor_init, public_vendor_default_prop)
     21 set_prop(vendor_init, vendor_bluetooth_prop)
     22 set_prop(vendor_init, vendor_modem_diag_prop)
     23 set_prop(vendor_init, vendor_thermal_prop)
     24 set_prop(vendor_init, vendor_radio_prop)
     25 set_prop(vendor_init, vendor_nfc_prop)
     26 set_prop(vendor_init, vendor_display_prop)
     27 set_prop(vendor_init, vendor_ssr_prop)
     28 
     29 allow vendor_init unlabeled:dir { getattr relabelfrom };
     30 
     31 #TUI Files
     32 allow vendor_init vendor_tui_data_file:dir create_dir_perms;
     33 
     34 set_prop(vendor_init, vendor_usb_prop)
     35