• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# ==============================================
2# Policy File of /system/bin/biosensord_nvram Executable File
3
4# ==============================================
5# Type Declaration
6# ==============================================
7type biosensord_nvram ,domain;
8type biosensord_nvram_exec , exec_type, file_type, vendor_file_type;
9type biosensord_nvram_file, file_type, data_file_type;
10
11# ==============================================
12# Android Policy Rule
13# ==============================================
14
15# ==============================================
16# NSA Policy Rule
17# ==============================================
18
19# ==============================================
20# MTK Policy Rule
21# ==============================================
22
23init_daemon_domain(biosensord_nvram)
24
25# Data : WK16.21
26# Operation : New Feature
27# Purpose : For biosensor daemon can do nvram r/w to save calibration data
28allow biosensord_nvram nvdata_file:dir rw_dir_perms;
29allow biosensord_nvram nvdata_file:file {rw_file_perms create_file_perms};
30allow biosensord_nvram nvram_data_file:lnk_file rw_file_perms;
31allow biosensord_nvram biometric_device:chr_file { open ioctl read write };
32allow biosensord_nvram self:capability { chown fsetid };
33