1# IKE key management daemon
2type racoon, domain;
3type racoon_exec, exec_type, file_type;
4
5init_daemon_domain(racoon)
6typeattribute racoon mlstrustedsubject;
7
8net_domain(racoon)
9
10binder_use(racoon)
11
12allow racoon tun_device:chr_file r_file_perms;
13allow racoon cgroup:dir { add_name create };
14allow racoon kernel:system module_request;
15
16allow racoon self:key_socket create_socket_perms;
17allow racoon self:tun_socket create_socket_perms;
18allow racoon self:capability { net_admin net_bind_service net_raw setuid };
19
20# XXX: should we give ip-up-vpn its own label (currently racoon domain)
21allow racoon system_file:file rx_file_perms;
22allow racoon vpn_data_file:file create_file_perms;
23allow racoon vpn_data_file:dir w_dir_perms;
24
25use_keystore(racoon)
26
27# Racoon (VPN) has a restricted set of permissions from the default.
28allow racoon keystore:keystore_key {
29	get
30	sign
31	verify
32};
33