incident_helper.te 719 B

1234567891011121314
  1. typeattribute incident_helper coredomain;
  2. type incident_helper_exec, system_file_type, exec_type, file_type;
  3. # switch to incident_helper domain for incident_helper command
  4. domain_auto_trans(incidentd, incident_helper_exec, incident_helper)
  5. # use pipe to transmit data from/to incidentd/incident_helper for parsing
  6. allow incident_helper { shell incident incidentd dumpstate }:fd use;
  7. allow incident_helper { shell incident incidentd dumpstate }:fifo_file { getattr read write };
  8. allow incident_helper incidentd:unix_stream_socket { read write };
  9. # only allow incidentd and shell to call incident_helper
  10. neverallow { domain -incidentd -incident_helper -shell } incident_helper_exec:file { execute execute_no_trans };