Home | History | Annotate | Download | only in common
      1 type time_daemon, domain;
      2 type time_daemon_exec, exec_type, vendor_file_type, file_type;
      3 
      4 init_daemon_domain(time_daemon)
      5 
      6 allow time_daemon self:capability { setgid setuid sys_time };
      7 
      8 allow time_daemon rtc_device:chr_file r_file_perms;
      9 
     10 r_dir_file(time_daemon, sysfs_msm_subsys)
     11 
     12 allow time_daemon sysfs_soc:dir search;
     13 allow time_daemon sysfs_soc:file r_file_perms;
     14 
     15 # Set time property
     16 set_prop(time_daemon, vendor_time_prop);
     17 
     18 allow time_daemon persist_time_file:dir w_dir_perms;
     19 allow time_daemon persist_time_file:file create_file_perms;
     20 allow time_daemon persist_time_file:dir search;
     21 
     22 allow time_daemon mnt_vendor_file:dir search;
     23 allow time_daemon persist_file:dir search;
     24 allow time_daemon vendor_time_data_file:file create_file_perms;
     25 allow time_daemon vendor_time_data_file:dir w_dir_perms;
     26 
     27 allow time_daemon self:socket create_socket_perms;
     28 allowxperm time_daemon self:socket ioctl msm_sock_ipc_ioctls;
     29 
     30 get_prop(time_daemon, vendor_time_service_prop);
     31 
     32 dontaudit time_daemon kernel:system module_request;
     33