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