rpcraig | 867ae05 | 2012-08-15 06:25:14 -0400 | [diff] [blame] | 1 | type dhcp, domain; |
Stephen Smalley | c48fd77 | 2013-10-29 14:42:35 -0400 | [diff] [blame] | 2 | permissive dhcp; |
rpcraig | 867ae05 | 2012-08-15 06:25:14 -0400 | [diff] [blame] | 3 | type dhcp_exec, exec_type, file_type; |
| 4 | type dhcp_data_file, file_type, data_file_type; |
| 5 | type dhcp_system_file, file_type, data_file_type; |
| 6 | |
| 7 | init_daemon_domain(dhcp) |
Geremy Condra | e69552b | 2013-03-26 18:00:13 +0000 | [diff] [blame] | 8 | net_domain(dhcp) |
Stephen Smalley | c48fd77 | 2013-10-29 14:42:35 -0400 | [diff] [blame] | 9 | |
| 10 | allow dhcp cgroup:dir { create write add_name }; |
| 11 | allow dhcp self:capability { setgid setuid net_admin net_raw net_bind_service }; |
| 12 | allow dhcp self:packet_socket create_socket_perms; |
| 13 | allow dhcp self:netlink_route_socket { create_socket_perms nlmsg_write }; |
| 14 | allow dhcp shell_exec:file rx_file_perms; |
| 15 | allow dhcp system_file:file rx_file_perms; |
| 16 | allow dhcp proc:file write; |
| 17 | allow dhcp system_prop:property_service set ; |
| 18 | allow dhcp dhcp_system_file:file rx_file_perms; |
| 19 | allow dhcp dhcp_system_file:dir r_dir_perms; |
| 20 | unix_socket_connect(dhcp, property, init) |
| 21 | allow dhcp owntty_device:chr_file rw_file_perms; |
rpcraig | 867ae05 | 2012-08-15 06:25:14 -0400 | [diff] [blame] | 22 | |
| 23 | type_transition dhcp system_data_file:{ dir file } dhcp_data_file; |
Stephen Smalley | c48fd77 | 2013-10-29 14:42:35 -0400 | [diff] [blame] | 24 | allow dhcp dhcp_data_file:dir create_dir_perms; |
| 25 | allow dhcp dhcp_data_file:file create_file_perms; |
| 26 | |
| 27 | # PAN connections |
| 28 | allow dhcp netd:fd use; |
| 29 | allow dhcp netd:fifo_file rw_file_perms; |
| 30 | allow dhcp netd:{ dgram_socket_class_set unix_stream_socket } { read write }; |
| 31 | allow dhcp netd:{ netlink_kobject_uevent_socket netlink_route_socket netlink_nflog_socket } { read write }; |