• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Policies for time daemon
2type time_daemon, domain, domain_deprecated;
3type time_daemon_exec, exec_type, file_type;
4type time_data_file, file_type, data_file_type;
5
6# Make transition to its own time_daemon domain from init
7init_daemon_domain(time_daemon)
8
9allow time_daemon self:capability { setuid setgid };
10allow time_daemon self:socket create_socket_perms;
11
12allow time_daemon time_data_file:dir w_dir_perms;
13allow time_daemon time_data_file:file create_file_perms;
14
15allow time_daemon smem_log_device:chr_file rw_file_perms;
16
17allow time_daemon rtc_device:chr_file r_file_perms;
18allow time_daemon alarm_device:chr_file w_file_perms;
19
20qmux_socket(time_daemon)
21