summaryrefslogtreecommitdiffstats
path: root/common/system_server.te
blob: 9094489f9d96f0d2764edadc9e4a812791bbce8d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#============= system_server ==============
# allow system_server to communicate with cnd process over cnd_socket
unix_socket_connect(system_server, cnd, cnd)
# allow  system/framework applications to update the cnd configuration files
allow system_server cnd_data_file:dir { read open write getattr add_name };
allow system_server cnd_data_file:file { create write getattr setattr read lock open };

# Access to sensors socket
unix_socket_connect(system_server, sensors, sensors)
unix_socket_send(system_server, sensors, sensors)
allow system_server sensors:unix_stream_socket sendto;
allow system_server sensors_socket:sock_file r_file_perms;
qmux_socket(system_server);

# access to perflock
allow system_server mpctl_socket:dir r_dir_perms;
unix_socket_send(system_server, mpctl, mpdecision)
unix_socket_connect(system_server, mpctl, mpdecision)

# allow  system/framework applications to update the dpmd configuration files
#allow system_server dpmd:unix_stream_socket connectto;
unix_socket_connect(system_server, dpmd, dpmd);
allow system_server dpmd_socket:sock_file write;
#allow system_server dpmd_data_file:dir { write read getattr open add_name };
allow system_server dpmd_data_file:dir rw_dir_perms;
#allow system_server dpmd_data_file:file { write getattr setattr read lock create open };
allow system_server dpmd_data_file:file rw_file_perms;
allow system_server dpmservice:service_manager add;
allow system_server socket_device:sock_file write;
unix_socket_send(system_server, mpctl, perfd)
unix_socket_connect(system_server, mpctl, perfd)

allow system_server location:unix_stream_socket connectto;
allow system_server location_data_file:dir rw_dir_perms;
allow system_server location_data_file:fifo_file create_file_perms;
allow system_server location_socket:sock_file rw_file_perms;
allow system_server location_app_data_file:dir r_dir_perms;
allow system_server location_data_file:sock_file rw_file_perms;

#For wifistatemachine
allow system_server kernel:key search;
allow system_server wbc_service:service_manager add;
allow system_server digitalpen_service:service_manager add;