blob: 1fbdb07fa240b3d0bb7d4056b21ab3a9d37e610e [file] [log] [blame]
Robert Craig18b5f872013-01-07 09:21:18 -05001# IKE key management daemon
2type racoon, domain;
Stephen Smalley97f7c822013-10-29 14:42:38 -04003permissive_or_unconfined(racoon)
Robert Craig18b5f872013-01-07 09:21:18 -05004type racoon_exec, exec_type, file_type;
5
Stephen Smalley97f7c822013-10-29 14:42:38 -04006init_daemon_domain(racoon)
7typeattribute racoon mlstrustedsubject;
8
Stephen Smalley16011322014-02-24 15:06:11 -05009net_domain(racoon)
10
Stephen Smalley97f7c822013-10-29 14:42:38 -040011binder_call(racoon, servicemanager)
12binder_call(racoon, keystore)
13
14allow racoon tun_device:chr_file r_file_perms;
15allow racoon cgroup:dir { add_name create };
16allow racoon kernel:system module_request;
Stephen Smalley97f7c822013-10-29 14:42:38 -040017
Stephen Smalley16011322014-02-24 15:06:11 -050018allow racoon self:key_socket create_socket_perms;
19allow racoon self:tun_socket create_socket_perms;
Stephen Smalley97f7c822013-10-29 14:42:38 -040020allow 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)
23allow racoon system_file:file rx_file_perms;
24allow racoon vpn_data_file:file create_file_perms;
25allow racoon vpn_data_file:dir w_dir_perms;