• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1type rlsservice, domain;
2type rlsservice_exec, exec_type, vendor_file_type, file_type;
3
4init_daemon_domain(rlsservice)
5vndbinder_use(rlsservice)
6add_service(rlsservice, rls_service)
7
8
9# access rainbow sensor calibration files
10allow rlsservice persist_file:dir search;
11allow rlsservice persist_camera_file:dir search;
12allow rlsservice persist_camera_file:file r_file_perms;
13allow rlsservice mnt_vendor_file:dir search;
14
15# access device files
16allow rlsservice rls_device:chr_file rw_file_perms;
17
18binder_call(rlsservice, hal_camera_default)
19
20# Allow access to display backlight information
21allow rlsservice sysfs_leds:dir search;
22allow rlsservice sysfs_leds:file r_file_perms;
23
24# Allow access to always-on compute device node
25allow rlsservice device:dir r_file_perms;
26allow rlsservice aoc_device:chr_file rw_file_perms;
27
28# For observing apex file changes
29allow rlsservice apex_info_file:file r_file_perms;
30
31# Allow read camera property
32get_prop(rlsservice, vendor_camera_prop);
33