1 ## <summary>Bring up/down ethernet interfaces based on cable detection.</summary>
3 ########################################
5 ## Execute a domain transition to run ifplugd.
7 ## <param name="domain">
9 ## Domain allowed to transition.
13 interface(`ifplugd_domtrans',`
15 type ifplugd_t, ifplugd_exec_t;
18 domtrans_pattern($1, ifplugd_exec_t, ifplugd_t)
21 ########################################
23 ## Send a generic signal to ifplugd
25 ## <param name="domain">
27 ## Domain allowed access.
31 interface(`ifplugd_signal',`
36 allow $1 ifplugd_t:process signal;
39 ########################################
41 ## Read ifplugd etc configuration files.
43 ## <param name="domain">
45 ## Domain allowed access.
49 interface(`ifplugd_read_config',`
55 read_files_pattern($1, ifplugd_etc_t, ifplugd_etc_t)
58 ########################################
60 ## Manage ifplugd etc configuration files.
62 ## <param name="domain">
64 ## Domain allowed access.
68 interface(`ifplugd_manage_config',`
74 manage_dirs_pattern($1, ifplugd_etc_t, ifplugd_etc_t)
75 manage_files_pattern($1, ifplugd_etc_t, ifplugd_etc_t)
78 ########################################
80 ## Read ifplugd PID files.
82 ## <param name="domain">
84 ## Domain allowed access.
88 interface(`ifplugd_read_pid_files',`
90 type ifplugd_var_run_t;
94 allow $1 ifplugd_var_run_t:file read_file_perms;
97 ########################################
99 ## All of the rules required to administrate
100 ## an ifplugd environment
102 ## <param name="domain">
104 ## Domain allowed access.
107 ## <param name="role">
109 ## The role to be allowed to manage the ifplugd domain.
114 interface(`ifplugd_admin',`
116 type ifplugd_t, ifplugd_etc_t, ifplugd_var_run_t;
117 type ifplugd_initrc_exec_t;
120 allow $1 ifplugd_t:process signal_perms;
121 ps_process_pattern($1, ifplugd_t)
123 init_labeled_script_domtrans($1, ifplugd_initrc_exec_t)
124 domain_system_change_exemption($1)
125 role_transition $2 ifplugd_initrc_exec_t system_r;
129 admin_pattern($1, ifplugd_etc_t)
132 admin_pattern($1, ifplugd_var_run_t)