aboutsummaryrefslogtreecommitdiff
blob: 268aba46489be38e94e0c3cd4dbba882aeaf144a (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
50
51
52
53
54
55
56
57
58
59
policy_module(bcfg2, 1.5.1)

########################################
#
# Declarations
#

type bcfg2_t;
type bcfg2_exec_t;
init_daemon_domain(bcfg2_t, bcfg2_exec_t)

type bcfg2_initrc_exec_t;
init_script_file(bcfg2_initrc_exec_t)

type bcfg2_runtime_t alias bcfg2_var_run_t;
files_pid_file(bcfg2_runtime_t)

type bcfg2_var_lib_t;
files_type(bcfg2_var_lib_t)

########################################
#
# Local policy
#

allow bcfg2_t self:fifo_file rw_fifo_file_perms;
allow bcfg2_t self:tcp_socket { accept listen };
allow bcfg2_t self:unix_stream_socket { accept connectto listen };

manage_dirs_pattern(bcfg2_t, bcfg2_var_lib_t, bcfg2_var_lib_t)
manage_files_pattern(bcfg2_t, bcfg2_var_lib_t, bcfg2_var_lib_t)
files_var_lib_filetrans(bcfg2_t, bcfg2_var_lib_t, dir)

manage_files_pattern(bcfg2_t, bcfg2_runtime_t, bcfg2_runtime_t)
files_pid_filetrans(bcfg2_t, bcfg2_runtime_t, file)

kernel_read_system_state(bcfg2_t)

corenet_all_recvfrom_netlabel(bcfg2_t)
corenet_tcp_sendrecv_generic_if(bcfg2_t)
corenet_tcp_sendrecv_generic_node(bcfg2_t)
corenet_tcp_bind_generic_node(bcfg2_t)

corenet_sendrecv_cyphesis_server_packets(bcfg2_t)
corenet_tcp_bind_cyphesis_port(bcfg2_t)

corecmd_exec_bin(bcfg2_t)

dev_read_urand(bcfg2_t)

domain_use_interactive_fds(bcfg2_t)

files_read_usr_files(bcfg2_t)

auth_use_nsswitch(bcfg2_t)

logging_send_syslog_msg(bcfg2_t)

miscfiles_read_localization(bcfg2_t)