Blame policy/modules/admin/brctl.te
|
Chris PeBenito |
12e9ea |
policy_module(brctl,1.0.1)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
########################################
|
|
Chris PeBenito |
8241b5 |
#
|
|
Chris PeBenito |
8241b5 |
# Declarations
|
|
Chris PeBenito |
8241b5 |
#
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
type brctl_t;
|
|
Chris PeBenito |
8241b5 |
type brctl_exec_t;
|
|
Chris PeBenito |
8241b5 |
domain_type(brctl_t)
|
|
Chris PeBenito |
8241b5 |
init_system_domain(brctl_t, brctl_exec_t)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
########################################
|
|
Chris PeBenito |
8241b5 |
#
|
|
Chris PeBenito |
8241b5 |
# brctl local policy
|
|
Chris PeBenito |
8241b5 |
#
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
allow brctl_t self:capability net_admin;
|
|
Chris PeBenito |
8241b5 |
allow brctl_t self:fifo_file rw_file_perms;
|
|
Chris PeBenito |
8241b5 |
allow brctl_t self:unix_stream_socket create_stream_socket_perms;
|
|
Chris PeBenito |
8241b5 |
allow brctl_t self:unix_dgram_socket create_socket_perms;
|
|
Chris PeBenito |
8241b5 |
allow brctl_t self:tcp_socket create_socket_perms;
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
kernel_load_module(brctl_t)
|
|
Chris PeBenito |
8241b5 |
kernel_read_network_state(brctl_t)
|
|
Chris PeBenito |
8241b5 |
kernel_read_sysctl(brctl_t)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
dev_rw_sysfs(brctl_t)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
# Init script handling
|
|
Chris PeBenito |
8241b5 |
domain_use_interactive_fds(brctl_t)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
files_read_etc_files(brctl_t)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
libs_use_ld_so(brctl_t)
|
|
Chris PeBenito |
8241b5 |
libs_use_shared_libs(brctl_t)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
miscfiles_read_localization(brctl_t)
|
|
Chris PeBenito |
8241b5 |
|
|
Chris PeBenito |
8241b5 |
optional_policy(`
|
|
Chris PeBenito |
8241b5 |
xen_append_log(brctl_t)
|
|
Chris PeBenito |
8241b5 |
')
|