|
Lines 77-82
files_pid_filetrans(dhcpc_t, dhcpc_var_run_t, { file dir })
Link Here
|
| 77 |
# Allow read/write to /etc/resolv.conf and /etc/ntp.conf. Note that any files |
77 |
# Allow read/write to /etc/resolv.conf and /etc/ntp.conf. Note that any files |
| 78 |
# in /etc created by dhcpcd will be labelled net_conf_t. |
78 |
# in /etc created by dhcpcd will be labelled net_conf_t. |
| 79 |
sysnet_manage_config(dhcpc_t) |
79 |
sysnet_manage_config(dhcpc_t) |
|
|
80 |
ntp_read_conf_files(dhcpc_t) |
| 80 |
files_etc_filetrans(dhcpc_t, net_conf_t, file) |
81 |
files_etc_filetrans(dhcpc_t, net_conf_t, file) |
| 81 |
|
82 |
|
| 82 |
# create temp files |
83 |
# create temp files |
|
Lines 84-89
manage_dirs_pattern(dhcpc_t, dhcpc_tmp_t, dhcpc_tmp_t)
Link Here
|
| 84 |
manage_files_pattern(dhcpc_t, dhcpc_tmp_t, dhcpc_tmp_t) |
85 |
manage_files_pattern(dhcpc_t, dhcpc_tmp_t, dhcpc_tmp_t) |
| 85 |
files_tmp_filetrans(dhcpc_t, dhcpc_tmp_t, { file dir }) |
86 |
files_tmp_filetrans(dhcpc_t, dhcpc_tmp_t, { file dir }) |
| 86 |
|
87 |
|
|
|
88 |
# setup udev uevent sockets |
| 89 |
allow dhcpc_t self:netlink_kobject_uevent_socket { create setopt }; |
| 90 |
|
| 87 |
can_exec(dhcpc_t, dhcpc_exec_t) |
91 |
can_exec(dhcpc_t, dhcpc_exec_t) |
| 88 |
|
92 |
|
| 89 |
kernel_read_system_state(dhcpc_t) |
93 |
kernel_read_system_state(dhcpc_t) |