2013-01-07 15:21:18 +01:00
|
|
|
# IKE key management daemon
|
2015-11-03 18:54:39 +01:00
|
|
|
type racoon, domain, domain_deprecated;
|
2013-01-07 15:21:18 +01:00
|
|
|
type racoon_exec, exec_type, file_type;
|
|
|
|
|
2013-10-29 19:42:38 +01:00
|
|
|
init_daemon_domain(racoon)
|
|
|
|
typeattribute racoon mlstrustedsubject;
|
|
|
|
|
2014-02-24 21:06:11 +01:00
|
|
|
net_domain(racoon)
|
|
|
|
|
2014-02-26 22:46:33 +01:00
|
|
|
binder_use(racoon)
|
2013-10-29 19:42:38 +01:00
|
|
|
|
|
|
|
allow racoon tun_device:chr_file r_file_perms;
|
|
|
|
allow racoon cgroup:dir { add_name create };
|
|
|
|
allow racoon kernel:system module_request;
|
|
|
|
|
2016-05-17 06:12:17 +02:00
|
|
|
allow racoon self:key_socket create_socket_perms_no_ioctl;
|
|
|
|
allow racoon self:tun_socket create_socket_perms_no_ioctl;
|
2013-10-29 19:42:38 +01:00
|
|
|
allow racoon self:capability { net_admin net_bind_service net_raw setuid };
|
|
|
|
|
|
|
|
# XXX: should we give ip-up-vpn its own label (currently racoon domain)
|
|
|
|
allow racoon system_file:file rx_file_perms;
|
|
|
|
allow racoon vpn_data_file:file create_file_perms;
|
|
|
|
allow racoon vpn_data_file:dir w_dir_perms;
|
2014-06-17 23:58:52 +02:00
|
|
|
|
|
|
|
use_keystore(racoon)
|
|
|
|
|
|
|
|
# Racoon (VPN) has a restricted set of permissions from the default.
|
|
|
|
allow racoon keystore:keystore_key {
|
|
|
|
get
|
|
|
|
sign
|
|
|
|
verify
|
|
|
|
};
|