|
|
889a9bf |
policy_module(openvswitch, 1.0.0)
|
|
|
889a9bf |
|
|
|
889a9bf |
########################################
|
|
|
889a9bf |
#
|
|
|
889a9bf |
# Declarations
|
|
|
889a9bf |
#
|
|
|
889a9bf |
|
|
|
889a9bf |
type openvswitch_t;
|
|
|
889a9bf |
type openvswitch_exec_t;
|
|
|
889a9bf |
init_daemon_domain(openvswitch_t, openvswitch_exec_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
type openvswitch_rw_t;
|
|
|
889a9bf |
files_config_file(openvswitch_rw_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
type openvswitch_var_lib_t;
|
|
|
889a9bf |
files_type(openvswitch_var_lib_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
type openvswitch_log_t;
|
|
|
889a9bf |
logging_log_file(openvswitch_log_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
type openvswitch_var_run_t;
|
|
|
889a9bf |
files_pid_file(openvswitch_var_run_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
type openvswitch_unit_file_t;
|
|
|
889a9bf |
systemd_unit_file(openvswitch_unit_file_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
########################################
|
|
|
889a9bf |
#
|
|
|
889a9bf |
# openvswitch local policy
|
|
|
889a9bf |
#
|
|
|
417ed9b |
|
|
|
417ed9b |
allow openvswitch_t self:capability { net_admin ipc_lock sys_nice sys_resource };
|
|
|
417ed9b |
allow openvswitch_t self:process { fork setsched setrlimit signal };
|
|
|
889a9bf |
allow openvswitch_t self:fifo_file rw_fifo_file_perms;
|
|
|
889a9bf |
allow openvswitch_t self:unix_stream_socket { create_stream_socket_perms connectto };
|
|
|
889a9bf |
allow openvswitch_t self:netlink_socket create_socket_perms;
|
|
|
abbcf43 |
allow openvswitch_t self:netlink_route_socket rw_netlink_socket_perms;
|
|
|
889a9bf |
|
|
|
889a9bf |
can_exec(openvswitch_t, openvswitch_exec_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
manage_dirs_pattern(openvswitch_t, openvswitch_rw_t, openvswitch_rw_t)
|
|
|
889a9bf |
manage_files_pattern(openvswitch_t, openvswitch_rw_t, openvswitch_rw_t)
|
|
|
889a9bf |
manage_lnk_files_pattern(openvswitch_t, openvswitch_rw_t, openvswitch_rw_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
manage_dirs_pattern(openvswitch_t, openvswitch_var_lib_t, openvswitch_var_lib_t)
|
|
|
889a9bf |
manage_files_pattern(openvswitch_t, openvswitch_var_lib_t, openvswitch_var_lib_t)
|
|
|
889a9bf |
manage_lnk_files_pattern(openvswitch_t, openvswitch_var_lib_t, openvswitch_var_lib_t)
|
|
|
889a9bf |
files_var_lib_filetrans(openvswitch_t, openvswitch_var_lib_t, { dir file lnk_file })
|
|
|
889a9bf |
|
|
|
889a9bf |
manage_dirs_pattern(openvswitch_t, openvswitch_log_t, openvswitch_log_t)
|
|
|
889a9bf |
manage_files_pattern(openvswitch_t, openvswitch_log_t, openvswitch_log_t)
|
|
|
889a9bf |
manage_lnk_files_pattern(openvswitch_t, openvswitch_log_t, openvswitch_log_t)
|
|
|
889a9bf |
logging_log_filetrans(openvswitch_t, openvswitch_log_t, { dir file lnk_file })
|
|
|
889a9bf |
|
|
|
889a9bf |
manage_dirs_pattern(openvswitch_t, openvswitch_var_run_t, openvswitch_var_run_t)
|
|
|
889a9bf |
manage_files_pattern(openvswitch_t, openvswitch_var_run_t, openvswitch_var_run_t)
|
|
|
889a9bf |
manage_sock_files_pattern(openvswitch_t, openvswitch_var_run_t, openvswitch_var_run_t)
|
|
|
889a9bf |
manage_lnk_files_pattern(openvswitch_t, openvswitch_var_run_t, openvswitch_var_run_t)
|
|
|
889a9bf |
files_pid_filetrans(openvswitch_t, openvswitch_var_run_t, { dir file lnk_file })
|
|
|
889a9bf |
|
|
|
889a9bf |
kernel_read_network_state(openvswitch_t)
|
|
|
889a9bf |
kernel_read_system_state(openvswitch_t)
|
|
|
ed68a24 |
kernel_request_load_module(openvswitch_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
corecmd_exec_bin(openvswitch_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
dev_read_urand(openvswitch_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
domain_use_interactive_fds(openvswitch_t)
|
|
|
889a9bf |
|
|
|
ed68a24 |
files_read_kernel_modules(openvswitch_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
fs_getattr_all_fs(openvswitch_t)
|
|
|
c563f35 |
fs_search_cgroup_dirs(openvswitch_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
auth_read_passwd(openvswitch_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
logging_send_syslog_msg(openvswitch_t)
|
|
|
889a9bf |
|
|
|
ed68a24 |
modutils_exec_insmod(openvswitch_t)
|
|
|
ed68a24 |
modutils_list_module_config(openvswitch_t)
|
|
|
ed68a24 |
modutils_read_module_config(openvswitch_t)
|
|
|
ed68a24 |
|
|
|
889a9bf |
sysnet_dns_name_resolve(openvswitch_t)
|
|
|
889a9bf |
|
|
|
889a9bf |
optional_policy(`
|
|
|
889a9bf |
iptables_domtrans(openvswitch_t)
|
|
|
889a9bf |
')
|
|
|
889a9bf |
|