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)
19binder_call(rlsservice, servicemanager)
20
21
22# Allow access to display backlight information
23allow rlsservice sysfs_leds:dir search;
24allow rlsservice sysfs_leds:file r_file_perms;
25
26# Allow access to always-on compute device node
27allow rlsservice device:dir r_file_perms;
28allow rlsservice aoc_device:chr_file rw_file_perms;
29
30# For observing apex file changes
31allow rlsservice apex_info_file:file r_file_perms;
32
33# Allow read camera property
34get_prop(rlsservice, vendor_camera_prop);
35
36# Allow rlsservice bugreport generation
37allow rlsservice dumpstate:fd use;
38allow rlsservice dumpstate:fifo_file write;