Home | History | Annotate | Download | only in sepolicy
      1 # Grant access to Qualcomm MSM Interface (QMI) radio sockets to system services
      2 # (e.g., LocationManager)
      3 qmux_socket(system_server)
      4 
      5 allow system_server self:netlink_socket create_socket_perms;
      6 
      7 allow system_server per_mgr_service:service_manager find;
      8 
      9 # Fingerprint access
     10 allow system_server fingerprint_device:chr_file rw_file_perms;
     11 
     12 #Needed by libmdmdetect to get subsystem info and to check their states
     13 allow system_server sysfs_ssr:dir r_dir_perms;
     14 allow system_server sysfs_ssr:lnk_file r_file_perms;
     15 
     16 # Needed by hubconnection for sensor hub
     17 allow system_server sensors_device:chr_file rw_file_perms;
     18 allow system_server uhid_device:chr_file rw_file_perms;
     19 allow system_server persist_file:dir search;
     20 allow system_server persist_sensortool_file:file r_file_perms;
     21 
     22 # For location
     23 allow system_server location:unix_stream_socket connectto;
     24 allow system_server location_data_file:{ file fifo_file } create_file_perms;
     25 allow system_server location_data_file:dir rw_dir_perms;
     26 allow system_server location_data_file:sock_file create_file_perms;
     27 
     28 # talk to perfd
     29 allow system_server perfd_data_file:dir search;
     30 allow system_server perfd_data_file:sock_file write;
     31 allow system_server perfd:unix_stream_socket connectto;
     32 
     33 # hubconnection to get and set sensors.contexthub.* properties
     34 set_prop(system_server, contexthub_prop);
     35 
     36 # To improve app launch times - we would like to force all tasks to
     37 # run on big cores for app launch (sched_boost) - instead of just
     38 # boosting them to make it "more likely" to run on big cores.
     39 allow system_server zygote:process setsched;
     40