selinux-policy/policy/modules/admin/backup.te

87 lines
2.0 KiB
Plaintext
Raw Normal View History

2006-04-24 18:58:46 +00:00
policy_module(backup, 1.5.0)
2006-04-24 18:58:46 +00:00
########################################
#
# Declarations
#
type backup_t;
type backup_exec_t;
domain_type(backup_t)
domain_entry_file(backup_t, backup_exec_t)
2006-04-24 18:58:46 +00:00
role system_r types backup_t;
type backup_store_t;
files_type(backup_store_t)
########################################
#
# Local policy
#
allow backup_t self:capability dac_override;
allow backup_t self:process signal;
2006-12-12 20:08:08 +00:00
allow backup_t self:fifo_file rw_fifo_file_perms;
2006-04-24 18:58:46 +00:00
allow backup_t self:tcp_socket create_socket_perms;
allow backup_t self:udp_socket create_socket_perms;
2006-12-12 20:08:08 +00:00
allow backup_t backup_store_t:file setattr;
manage_files_pattern(backup_t, backup_store_t, backup_store_t)
rw_files_pattern(backup_t, backup_store_t, backup_store_t)
read_lnk_files_pattern(backup_t, backup_store_t, backup_store_t)
2006-04-24 18:58:46 +00:00
kernel_read_system_state(backup_t)
kernel_read_kernel_sysctls(backup_t)
corecmd_exec_bin(backup_t)
corecmd_exec_shell(backup_t)
2006-04-24 18:58:46 +00:00
corenet_all_recvfrom_unlabeled(backup_t)
corenet_all_recvfrom_netlabel(backup_t)
2006-04-24 18:58:46 +00:00
corenet_tcp_sendrecv_generic_if(backup_t)
corenet_udp_sendrecv_generic_if(backup_t)
corenet_raw_sendrecv_generic_if(backup_t)
corenet_tcp_sendrecv_generic_node(backup_t)
corenet_udp_sendrecv_generic_node(backup_t)
corenet_raw_sendrecv_generic_node(backup_t)
2006-04-24 18:58:46 +00:00
corenet_tcp_sendrecv_all_ports(backup_t)
corenet_udp_sendrecv_all_ports(backup_t)
corenet_tcp_connect_all_ports(backup_t)
2006-05-29 19:53:43 +00:00
corenet_sendrecv_all_client_packets(backup_t)
2006-04-24 18:58:46 +00:00
dev_getattr_all_blk_files(backup_t)
dev_getattr_all_chr_files(backup_t)
# for SSP
dev_read_urand(backup_t)
domain_use_interactive_fds(backup_t)
files_read_all_files(backup_t)
files_read_all_symlinks(backup_t)
files_getattr_all_pipes(backup_t)
files_getattr_all_sockets(backup_t)
fs_getattr_xattr_fs(backup_t)
fs_list_all(backup_t)
auth_read_shadow(backup_t)
logging_send_syslog_msg(backup_t)
sysnet_read_config(backup_t)
2008-11-05 16:10:46 +00:00
userdom_use_user_terminals(backup_t)
2006-04-24 18:58:46 +00:00
optional_policy(`
cron_system_entry(backup_t, backup_exec_t)
2006-04-24 18:58:46 +00:00
')
optional_policy(`
hostname_exec(backup_t)
')
optional_policy(`
nis_use_ypbind(backup_t)
')