• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type small_hals, domain;
2hal_server_domain(small_hals, hal_light)
3hal_server_domain(small_hals, hal_memtrack)
4hal_server_domain(small_hals, hal_vibrator)
5
6type small_hals_exec, exec_type, vendor_file_type, file_type;
7init_daemon_domain(small_hals)
8
9# Light Permissions
10
11# This is the same as a line below for vibrator.  We keep both so that it is
12# easier to see what rules are needed for what HAL.
13allow small_hals sysfs_msm_subsys:dir search;
14
15# Memtrack Permissions
16
17allow small_hals debugfs_kgsl:file { open read getattr };
18
19# Vibrator Permissions
20
21r_dir_file(small_hals, sysfs_leds)
22allow small_hals sysfs_leds:file w_file_perms;
23allow small_hals sysfs_msm_subsys:file rw_file_perms;
24# This is the same as a line above for light.  We keep both so that it is
25# easier to see what rules are needed for what HAL.
26allow small_hals sysfs_msm_subsys:dir search;
27
28# read-only permission to obtain the calibration data
29r_dir_file(small_hals, persist_haptics_file)
30allow small_hals mnt_vendor_file:dir search;
31allow small_hals persist_file:dir search;
32