Home | History | Annotate | Download | only in sepolicy
      1 type gsiffd, domain, domain_deprecated;
      2 type gsiffd_exec, exec_type, file_type;
      3 
      4 # Started by init
      5 init_daemon_domain(gsiffd)
      6 
      7 # Write to /data/misc/location/gsiff/
      8 allow gsiffd gsiffd_data_file:dir rw_dir_perms;
      9 allow gsiffd gsiffd_data_file:fifo_file create_file_perms;
     10 
     11 # Write to /data/misc/location/quipc/
     12 allow gsiffd quipc_data_file:dir rw_dir_perms;
     13 allow gsiffd quipc_data_file:sock_file create_file_perms;
     14 
     15 # Create sockets
     16 allow gsiffd self:socket create_socket_perms;
     17 
     18 # Talk to qmux
     19 qmux_socket(gsiffd)
     20 
     21 # Run stat on /dev/sensors
     22 allow gsiffd sensors_device:chr_file getattr;
     23 
     24 # Talk to the sensors daemon
     25 unix_socket_connect(gsiffd, sensors, sensors)
     26