summaryrefslogtreecommitdiff
path: root/vendor/chre.te
blob: a1d1ca59a2d67382e813493cb6f9f95e30d6dee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
type chre, domain;
type chre_exec, vendor_file_type, exec_type, file_type;
init_daemon_domain(chre)

# Permit communication with AoC
allow chre aoc_device:chr_file rw_file_perms;

# Allow CHRE to determine AoC's current clock
allow chre sysfs_aoc:dir search;
allow chre sysfs_aoc_boottime:file r_file_perms;

# Allow CHRE to create thread to watch AOC's device
allow chre device:dir r_dir_perms;

# Allow CHRE to use WakeLock
wakelock_use(chre)