1# Policies for time daemon
2type time_daemon, domain;
3type time_daemon_exec, exec_type, file_type;
4
5init_daemon_domain(time_daemon)
6
7# Allow access to /dev/smem_log.
8allow time_daemon smem_log_device:chr_file rw_file_perms;
9
10# Add rules for access permissions
11allow time_daemon rtc_device:chr_file r_file_perms;
12allow time_daemon alarm_device:chr_file rw_file_perms;
13
14# Allo access to /data/time/*.
15allow time_daemon time_data_file:file r_file_perms;
16
17allow time_daemon self:socket create_socket_perms;
18
19allow time_daemon self:capability { setuid setgid };
20