remove obsolete flags from BoardConfig
[GitHub/mt8127/android_device_alcatel_ttab.git] / sepolicy / nvram_daemon.te
CommitLineData
ce9dd018
S
1type nvram_daemon_exec, exec_type, file_type;
2type nvram_daemon, domain, domain_deprecated;
3
4init_daemon_domain(nvram_daemon)
5
6allow nvram_daemon self:capability { fowner dac_override dac_read_search chown fsetid };
7allow nvram_daemon nvram_device:blk_file rw_file_perms;
8allow nvram_daemon nvdata_device:blk_file rw_file_perms;
9allow nvram_daemon nvdata_file:dir create_dir_perms;
10allow nvram_daemon nvdata_file:file create_file_perms;
11allow nvram_daemon nvdata_file:lnk_file r_file_perms;
12allow nvram_daemon shell_exec:file { read execute open execute_no_trans getattr };
13allow nvram_daemon als_ps_device:chr_file r_file_perms;
14allow nvram_daemon mtk-adc-cali_device:chr_file rw_file_perms;
15allow nvram_daemon gsensor_device:chr_file r_file_perms;
16allow nvram_daemon msensor_device:chr_file r_file_perms;
17allow nvram_daemon gyroscope_device:chr_file r_file_perms;
18allow nvram_daemon toolbox_exec:file rx_file_perms;
19
20allow nvram_daemon proinfo_device:blk_file rw_file_perms;
21allow nvram_daemon nvram_prop:property_service set;
22allow nvram_daemon wmt_prop:property_service set;
23
24allow nvram_daemon block_device:dir search;
25
26unix_socket_connect(nvram_daemon, property, init)
5244c9e3
S
27
28allow nvram_daemon sysfs_boot_mode:file { read open };
29allow nvram_daemon sysfs:file { write };
30allow nvram_daemon system_prop:property_service { set };
9562b311
S
31
32allow nvram_daemon nvram_device:chr_file { read write open };
33allow nvram_daemon mmc_device:blk_file { read write open };
34allow nvram_daemon proinfo_device:chr_file { read write open ioctl };