forked from fedora-selinux/selinux-policy-contrib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bird.te
57 lines (41 loc) · 1.36 KB
/
bird.te
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
policy_module(bird, 1.1.0)
########################################
#
# Declarations
#
type bird_t;
type bird_exec_t;
init_daemon_domain(bird_t, bird_exec_t)
type bird_initrc_exec_t;
init_script_file(bird_initrc_exec_t)
type bird_etc_t;
files_config_file(bird_etc_t)
type bird_log_t;
logging_log_file(bird_log_t)
type bird_var_run_t;
files_pid_file(bird_var_run_t)
########################################
#
# Local policy
#
allow bird_t self:capability net_admin;
allow bird_t self:netlink_route_socket create_netlink_socket_perms;
allow bird_t self:tcp_socket create_stream_socket_perms;
allow bird_t bird_etc_t:file read_file_perms;
allow bird_t bird_log_t:file { create_file_perms append_file_perms setattr_file_perms };
logging_log_filetrans(bird_t, bird_log_t, file)
allow bird_t bird_var_run_t:sock_file manage_sock_file_perms;
files_pid_filetrans(bird_t, bird_var_run_t, sock_file)
corenet_all_recvfrom_unlabeled(bird_t)
corenet_all_recvfrom_netlabel(bird_t)
corenet_tcp_sendrecv_generic_if(bird_t)
corenet_tcp_bind_generic_node(bird_t)
corenet_tcp_sendrecv_generic_node(bird_t)
corenet_sendrecv_bgp_client_packets(bird_t)
corenet_sendrecv_bgp_server_packets(bird_t)
corenet_tcp_bind_bgp_port(bird_t)
corenet_tcp_connect_bgp_port(bird_t)
corenet_tcp_sendrecv_bgp_port(bird_t)
# /etc/iproute2/rt_realms
logging_send_syslog_msg(bird_t)
miscfiles_read_localization(bird_t)