device_google_zumapro/vendor/chre.te
Yixuan Wang ea65f1e6bd Add selinux policy for chre vendor data directory
Bug: 278114604
Test: on device test
Change-Id: Ic8f0256c43ab3bc7c7bd30484f47e77bb970ce56
2023-06-22 18:18:28 +00:00

20 lines
597 B
Text

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 write to data to chre data directory
allow chre chre_data_file:dir create_dir_perms;
allow chre chre_data_file:file create_file_perms;
# Allow CHRE to use WakeLock
wakelock_use(chre)