blob: 3b89491676124ca56d7c458640c7876529b629cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
policy_module(vde, 0.0.1)
########################################
#
# Declarations
#
type vde_t;
type vde_exec_t;
init_daemon_domain(vde_t, vde_exec_t)
type vde_initrc_exec_t;
init_script_file(vde_initrc_exec_t)
type vde_var_lib_t;
files_type(vde_var_lib_t)
type vde_var_run_t;
files_pid_file(vde_var_run_t)
type vde_tmp_t;
files_tmp_file(vde_tmp_t)
########################################
#
# Local policy
#
allow vde_t self:process { signal_perms getcap setcap };
allow vde_t self:capability { chown net_admin dac_override fowner fsetid };
allow vde_t vde_tmp_t:sock_file manage_sock_file_perms;
allow vde_t self:unix_stream_socket { create_stream_socket_perms connectto };
allow vde_t self:unix_dgram_socket create_socket_perms;
files_tmp_filetrans(vde_t, vde_tmp_t, sock_file)
manage_dirs_pattern(vde_t, vde_var_run_t, vde_var_run_t)
manage_files_pattern(vde_t, vde_var_run_t, vde_var_run_t)
manage_sock_files_pattern(vde_t, vde_var_run_t, vde_var_run_t)
files_pid_filetrans(vde_t, vde_var_run_t, { dir file sock_file unix_dgram_socket })
files_read_etc_files(vde_t)
domain_use_interactive_fds(vde_t)
userdom_use_user_terminals(vde_t)
miscfiles_read_localization(vde_t)
corenet_rw_tun_tap_dev(vde_t)
logging_send_syslog_msg(vde_t)
|