2013-01-07 06:21:18 -08:00
|
|
|
# IKE key management daemon
|
2016-10-15 17:15:25 -07:00
|
|
|
type racoon, domain;
|
2018-09-27 10:21:37 -07:00
|
|
|
type racoon_exec, system_file_type, exec_type, file_type;
|
2013-01-07 06:21:18 -08:00
|
|
|
|
2013-10-29 11:42:38 -07:00
|
|
|
typeattribute racoon mlstrustedsubject;
|
|
|
|
|
2014-02-24 12:06:11 -08:00
|
|
|
net_domain(racoon)
|
2017-01-24 17:12:58 -08:00
|
|
|
allowxperm racoon self:udp_socket ioctl { SIOCSIFFLAGS SIOCSIFADDR SIOCSIFNETMASK };
|
2014-02-24 12:06:11 -08:00
|
|
|
|
2014-02-26 13:46:33 -08:00
|
|
|
binder_use(racoon)
|
2013-10-29 11:42:38 -07:00
|
|
|
|
|
|
|
allow racoon tun_device:chr_file r_file_perms;
|
2018-11-15 10:32:45 -08:00
|
|
|
allowxperm racoon tun_device:chr_file ioctl TUNSETIFF;
|
2013-10-29 11:42:38 -07:00
|
|
|
allow racoon cgroup:dir { add_name create };
|
|
|
|
allow racoon kernel:system module_request;
|
|
|
|
|
2016-05-16 21:12:17 -07:00
|
|
|
allow racoon self:key_socket create_socket_perms_no_ioctl;
|
|
|
|
allow racoon self:tun_socket create_socket_perms_no_ioctl;
|
2017-11-09 14:51:26 -08:00
|
|
|
allow racoon self:global_capability_class_set { net_admin net_bind_service net_raw };
|
2013-10-29 11:42:38 -07:00
|
|
|
|
|
|
|
# XXX: should we give ip-up-vpn its own label (currently racoon domain)
|
|
|
|
allow racoon system_file:file rx_file_perms;
|
2017-04-13 21:58:12 -07:00
|
|
|
not_full_treble(`allow racoon vendor_file:file rx_file_perms;')
|
2013-10-29 11:42:38 -07:00
|
|
|
allow racoon vpn_data_file:file create_file_perms;
|
|
|
|
allow racoon vpn_data_file:dir w_dir_perms;
|
2014-06-17 14:58:52 -07:00
|
|
|
|
|
|
|
use_keystore(racoon)
|
|
|
|
|
|
|
|
# Racoon (VPN) has a restricted set of permissions from the default.
|
|
|
|
allow racoon keystore:keystore_key {
|
|
|
|
get
|
|
|
|
sign
|
|
|
|
verify
|
|
|
|
};
|