2018-01-22 23:00:46 +01:00
|
|
|
typeattribute incident_helper coredomain;
|
|
|
|
|
2018-09-27 19:21:37 +02:00
|
|
|
type incident_helper_exec, system_file_type, exec_type, file_type;
|
2018-01-22 23:00:46 +01:00
|
|
|
|
|
|
|
# switch to incident_helper domain for incident_helper command
|
|
|
|
domain_auto_trans(incidentd, incident_helper_exec, incident_helper)
|
|
|
|
|
|
|
|
# use pipe to transmit data from/to incidentd/incident_helper for parsing
|
2018-12-03 19:35:40 +01:00
|
|
|
allow incident_helper { shell incident incidentd dumpstate }:fd use;
|
|
|
|
allow incident_helper { shell incident incidentd dumpstate }:fifo_file { getattr read write };
|
2018-03-30 19:14:08 +02:00
|
|
|
allow incident_helper incidentd:unix_stream_socket { read write };
|
2018-01-22 23:00:46 +01:00
|
|
|
|
|
|
|
# only allow incidentd and shell to call incident_helper
|
|
|
|
neverallow { domain -incidentd -incident_helper -shell } incident_helper_exec:file { execute execute_no_trans };
|