blob: 1698fd4629f4ae59ca82357189dd8ccc31e15152 [file] [log] [blame]
wangxl5b6293a2015-02-03 21:10:20 +08001# location - Location daemon
2type location, domain;
3type location_exec, exec_type, file_type;
4
5init_daemon_domain(location)
6net_domain(location)
7
8# Socket is created by the daemon, not by init, and under /data/gps,
9# not under /dev/socket.
10type_transition location location_data_file:sock_file location_socket;
11
12qmux_socket(location)
13binder_use(location)
14binder_call(location, system_server)
15
16allow location location_data_file:dir rw_dir_perms;
17allow location location_data_file:fifo_file create_file_perms;
18allow location location_data_file:file create_file_perms;
19allow location location_exec:file execute_no_trans;
20allow location location_socket:sock_file create_file_perms;
21allow location self:capability { setuid setgid };
22allow location self:socket create_socket_perms;
23allow location sensors:unix_stream_socket connectto;
24allow location sensors_device:chr_file r_file_perms;
25allow location sensors_socket:sock_file w_file_perms;
26allow location self:netlink_socket create_socket_perms;
27allow location system_server:unix_stream_socket { read write };
28
29dontaudit location domain:dir r_dir_perms;
30r_dir_file(location, netmgrd)