Robert Craig | 18b5f87 | 2013-01-07 09:21:18 -0500 | [diff] [blame] | 1 | # IKE key management daemon |
| 2 | type racoon, domain; |
Stephen Smalley | 97f7c82 | 2013-10-29 14:42:38 -0400 | [diff] [blame] | 3 | permissive_or_unconfined(racoon) |
Robert Craig | 18b5f87 | 2013-01-07 09:21:18 -0500 | [diff] [blame] | 4 | type racoon_exec, exec_type, file_type; |
| 5 | |
Stephen Smalley | 97f7c82 | 2013-10-29 14:42:38 -0400 | [diff] [blame] | 6 | init_daemon_domain(racoon) |
| 7 | typeattribute racoon mlstrustedsubject; |
| 8 | |
Stephen Smalley | 1601132 | 2014-02-24 15:06:11 -0500 | [diff] [blame] | 9 | net_domain(racoon) |
| 10 | |
Stephen Smalley | 97f7c82 | 2013-10-29 14:42:38 -0400 | [diff] [blame] | 11 | binder_call(racoon, servicemanager) |
| 12 | binder_call(racoon, keystore) |
| 13 | |
| 14 | allow racoon tun_device:chr_file r_file_perms; |
| 15 | allow racoon cgroup:dir { add_name create }; |
| 16 | allow racoon kernel:system module_request; |
Stephen Smalley | 97f7c82 | 2013-10-29 14:42:38 -0400 | [diff] [blame] | 17 | |
Stephen Smalley | 1601132 | 2014-02-24 15:06:11 -0500 | [diff] [blame] | 18 | allow racoon self:key_socket create_socket_perms; |
| 19 | allow racoon self:tun_socket create_socket_perms; |
Stephen Smalley | 97f7c82 | 2013-10-29 14:42:38 -0400 | [diff] [blame] | 20 | allow racoon self:capability { net_admin net_bind_service net_raw setuid }; |
| 21 | |
| 22 | # XXX: should we give ip-up-vpn its own label (currently racoon domain) |
| 23 | allow racoon system_file:file rx_file_perms; |
| 24 | allow racoon vpn_data_file:file create_file_perms; |
| 25 | allow racoon vpn_data_file:dir w_dir_perms; |