gpsd.te 708 B

123456789101112131415161718
  1. type gpsd, domain;
  2. type gpsd_exec, exec_type, vendor_file_type, file_type;
  3. init_daemon_domain(gpsd)
  4. net_domain(gpsd)
  5. allow gpsd gpsd:capability { net_raw };
  6. allow gpsd serial_device:chr_file rw_file_perms;
  7. # The following are needed by logwrapper to get gpsd's output
  8. # to Android's logs.
  9. typeattribute gpsd vendor_executes_system_violators;
  10. allow gpsd shell_exec:file { execute execute_no_trans read open getattr };
  11. allow gpsd vendor_file:file { execute execute_no_trans read open getattr };
  12. allow gpsd devpts:chr_file { read write open getattr };
  13. allow gpsd gpsd_exec:file { execute execute_no_trans read open getattr };
  14. allow gpsd vendor_shell_exec:file { execute execute_no_trans read open getattr };