|
Chris PeBenito |
9570b2 |
policy_module(backup, 1.5.0)
|
|
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 |
0bfccd |
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 |
c0868a |
allow backup_t self:fifo_file rw_fifo_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 |
c0868a |
allow backup_t backup_store_t:file setattr;
|
|
Chris PeBenito |
0bfccd |
manage_files_pattern(backup_t, backup_store_t, backup_store_t)
|
|
Chris PeBenito |
0bfccd |
rw_files_pattern(backup_t, backup_store_t, backup_store_t)
|
|
Chris PeBenito |
0bfccd |
read_lnk_files_pattern(backup_t, backup_store_t, backup_store_t)
|
|
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 |
45b56b |
corecmd_exec_shell(backup_t)
|
|
Chris PeBenito |
57f233 |
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_unlabeled(backup_t)
|
|
Chris PeBenito |
190066 |
corenet_all_recvfrom_netlabel(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 |
c12621 |
corenet_tcp_sendrecv_generic_node(backup_t)
|
|
Chris PeBenito |
c12621 |
corenet_udp_sendrecv_generic_node(backup_t)
|
|
Chris PeBenito |
c12621 |
corenet_raw_sendrecv_generic_node(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 |
logging_send_syslog_msg(backup_t)
|
|
Chris PeBenito |
57f233 |
|
|
Chris PeBenito |
57f233 |
sysnet_read_config(backup_t)
|
|
Chris PeBenito |
57f233 |
|
|
Chris PeBenito |
296273 |
userdom_use_user_terminals(backup_t)
|
|
Chris PeBenito |
296273 |
|
|
Chris PeBenito |
57f233 |
optional_policy(`
|
|
Chris PeBenito |
0bfccd |
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 |
')
|