Chris PeBenito 57f233
Chris PeBenito 9d0c9b
policy_module(backup,1.0.1)
Chris PeBenito 57f233
Chris PeBenito 57f233
########################################
Chris PeBenito 57f233
#
Chris PeBenito 57f233
# Declarations
Chris PeBenito 57f233
#
Chris PeBenito 57f233
Chris PeBenito 57f233
type backup_t;
Chris PeBenito 57f233
type backup_exec_t;
Chris PeBenito 57f233
domain_type(backup_t)
Chris PeBenito 57f233
domain_entry_file(backup_t,backup_exec_t)
Chris PeBenito 57f233
role system_r types backup_t;
Chris PeBenito 57f233
Chris PeBenito 57f233
type backup_store_t;
Chris PeBenito 57f233
files_type(backup_store_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
########################################
Chris PeBenito 57f233
#
Chris PeBenito 57f233
# Local policy
Chris PeBenito 57f233
#
Chris PeBenito 57f233
Chris PeBenito 57f233
allow backup_t self:capability dac_override;
Chris PeBenito 57f233
allow backup_t self:process signal;
Chris PeBenito 57f233
allow backup_t self:fifo_file rw_file_perms;
Chris PeBenito 57f233
allow backup_t self:tcp_socket create_socket_perms;
Chris PeBenito 57f233
allow backup_t self:udp_socket create_socket_perms;
Chris PeBenito 57f233
Chris PeBenito 57f233
allow backup_t backup_store_t:dir ra_dir_perms;
Chris PeBenito 57f233
allow backup_t backup_store_t:file { create rw_file_perms setattr };
Chris PeBenito 57f233
allow backup_t backup_store_t:lnk_file { getattr read };
Chris PeBenito 57f233
Chris PeBenito 57f233
kernel_read_system_state(backup_t)
Chris PeBenito 57f233
kernel_read_kernel_sysctls(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
corecmd_exec_bin(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
corenet_non_ipsec_sendrecv(backup_t)
Chris PeBenito 57f233
corenet_tcp_sendrecv_generic_if(backup_t)
Chris PeBenito 57f233
corenet_udp_sendrecv_generic_if(backup_t)
Chris PeBenito 57f233
corenet_raw_sendrecv_generic_if(backup_t)
Chris PeBenito 57f233
corenet_tcp_sendrecv_all_nodes(backup_t)
Chris PeBenito 57f233
corenet_udp_sendrecv_all_nodes(backup_t)
Chris PeBenito 57f233
corenet_raw_sendrecv_all_nodes(backup_t)
Chris PeBenito 57f233
corenet_tcp_sendrecv_all_ports(backup_t)
Chris PeBenito 57f233
corenet_udp_sendrecv_all_ports(backup_t)
Chris PeBenito 57f233
corenet_tcp_connect_all_ports(backup_t)
Chris PeBenito 9d0c9b
corenet_sendrecv_all_client_packets(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
dev_getattr_all_blk_files(backup_t)
Chris PeBenito 57f233
dev_getattr_all_chr_files(backup_t)
Chris PeBenito 57f233
# for SSP
Chris PeBenito 57f233
dev_read_urand(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
domain_use_interactive_fds(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
files_read_all_files(backup_t)
Chris PeBenito 57f233
files_read_all_symlinks(backup_t)
Chris PeBenito 57f233
files_getattr_all_pipes(backup_t)
Chris PeBenito 57f233
files_getattr_all_sockets(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
fs_getattr_xattr_fs(backup_t)
Chris PeBenito 57f233
fs_list_all(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
auth_read_shadow(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
libs_use_ld_so(backup_t)
Chris PeBenito 57f233
libs_use_shared_libs(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
logging_send_syslog_msg(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
sysnet_read_config(backup_t)
Chris PeBenito 57f233
Chris PeBenito 57f233
optional_policy(`
Chris PeBenito 57f233
	cron_system_entry(backup_t,backup_exec_t)
Chris PeBenito 57f233
')
Chris PeBenito 57f233
Chris PeBenito 57f233
optional_policy(`
Chris PeBenito 57f233
	hostname_exec(backup_t)
Chris PeBenito 57f233
')
Chris PeBenito 57f233
Chris PeBenito 57f233
optional_policy(`
Chris PeBenito 57f233
	nis_use_ypbind(backup_t)
Chris PeBenito 57f233
')