2010-05-24 19:32:01 +00:00
|
|
|
policy_module(xen, 1.10.0)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
2010-08-26 13:41:21 +00:00
|
|
|
attribute xm_transition_domain;
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
## <desc>
|
|
|
|
## <p>
|
|
|
|
## Allow xen to manage nfs files
|
|
|
|
## </p>
|
|
|
|
## </desc>
|
|
|
|
gen_tunable(xen_use_nfs, false)
|
|
|
|
|
|
|
|
type evtchnd_t;
|
|
|
|
type evtchnd_exec_t;
|
|
|
|
init_daemon_domain(evtchnd_t, evtchnd_exec_t)
|
|
|
|
|
|
|
|
# log files
|
|
|
|
type evtchnd_var_log_t;
|
|
|
|
logging_log_file(evtchnd_var_log_t)
|
|
|
|
|
|
|
|
# pid files
|
|
|
|
type evtchnd_var_run_t;
|
|
|
|
files_pid_file(evtchnd_var_run_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
# console ptys
|
|
|
|
type xen_devpts_t;
|
2009-06-19 13:52:33 +00:00
|
|
|
term_pty(xen_devpts_t)
|
|
|
|
files_type(xen_devpts_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2006-06-07 17:43:10 +00:00
|
|
|
# Xen Image files
|
|
|
|
type xen_image_t; # customizable
|
|
|
|
files_type(xen_image_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
# xen_image_t can be assigned to blk devices
|
|
|
|
dev_node(xen_image_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
virt_image(xen_image_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
|
|
|
|
type xenctl_t;
|
|
|
|
files_type(xenctl_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
type xend_t;
|
|
|
|
type xend_exec_t;
|
|
|
|
domain_type(xend_t)
|
|
|
|
init_daemon_domain(xend_t, xend_exec_t)
|
|
|
|
|
2007-06-21 13:36:05 +00:00
|
|
|
# tmp files
|
|
|
|
type xend_tmp_t;
|
|
|
|
files_tmp_file(xend_tmp_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
# var/lib files
|
|
|
|
type xend_var_lib_t;
|
|
|
|
files_type(xend_var_lib_t)
|
2006-04-17 17:32:54 +00:00
|
|
|
# for mounting an NFS store
|
|
|
|
files_mountpoint(xend_var_lib_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
# log files
|
|
|
|
type xend_var_log_t;
|
|
|
|
logging_log_file(xend_var_log_t)
|
|
|
|
|
|
|
|
# pid files
|
|
|
|
type xend_var_run_t;
|
|
|
|
files_pid_file(xend_var_run_t)
|
2009-11-25 15:27:31 +00:00
|
|
|
files_mountpoint(xend_var_run_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
type xenstored_t;
|
|
|
|
type xenstored_exec_t;
|
2009-11-25 15:27:31 +00:00
|
|
|
init_daemon_domain(xenstored_t, xenstored_exec_t)
|
|
|
|
|
|
|
|
type xenstored_tmp_t;
|
|
|
|
files_tmp_file(xenstored_tmp_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
# var/lib files
|
|
|
|
type xenstored_var_lib_t;
|
|
|
|
files_type(xenstored_var_lib_t)
|
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
# log files
|
|
|
|
type xenstored_var_log_t;
|
|
|
|
logging_log_file(xenstored_var_log_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
# pid files
|
|
|
|
type xenstored_var_run_t;
|
|
|
|
files_pid_file(xenstored_var_run_t)
|
|
|
|
|
|
|
|
type xenconsoled_t;
|
|
|
|
type xenconsoled_exec_t;
|
2009-11-25 15:27:31 +00:00
|
|
|
init_daemon_domain(xenconsoled_t, xenconsoled_exec_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
# pid files
|
|
|
|
type xenconsoled_var_run_t;
|
|
|
|
files_pid_file(xenconsoled_var_run_t)
|
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
#######################################
|
|
|
|
#
|
|
|
|
# evtchnd local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
manage_dirs_pattern(evtchnd_t, evtchnd_var_log_t, evtchnd_var_log_t)
|
|
|
|
manage_files_pattern(evtchnd_t, evtchnd_var_log_t, evtchnd_var_log_t)
|
|
|
|
logging_log_filetrans(evtchnd_t, evtchnd_var_log_t, { file dir })
|
|
|
|
|
|
|
|
manage_dirs_pattern(evtchnd_t, evtchnd_var_run_t, evtchnd_var_run_t)
|
|
|
|
manage_files_pattern(evtchnd_t, evtchnd_var_run_t, evtchnd_var_run_t)
|
|
|
|
manage_sock_files_pattern(evtchnd_t, evtchnd_var_run_t, evtchnd_var_run_t)
|
|
|
|
files_pid_filetrans(evtchnd_t, evtchnd_var_run_t, { file sock_file dir })
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# xend local policy
|
|
|
|
#
|
|
|
|
|
2006-10-31 21:01:48 +00:00
|
|
|
allow xend_t self:capability { mknod dac_override ipc_lock net_admin setuid sys_nice sys_ptrace sys_tty_config net_raw };
|
2006-08-29 02:41:00 +00:00
|
|
|
dontaudit xend_t self:capability { sys_ptrace };
|
2006-03-23 19:19:38 +00:00
|
|
|
allow xend_t self:process { signal sigkill };
|
2006-08-29 02:41:00 +00:00
|
|
|
dontaudit xend_t self:process ptrace;
|
2006-03-23 19:19:38 +00:00
|
|
|
# internal communication is often done using fifo and unix sockets.
|
2006-12-12 20:08:08 +00:00
|
|
|
allow xend_t self:fifo_file rw_fifo_file_perms;
|
2006-03-23 19:19:38 +00:00
|
|
|
allow xend_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow xend_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
allow xend_t self:netlink_route_socket r_netlink_socket_perms;
|
|
|
|
allow xend_t self:tcp_socket create_stream_socket_perms;
|
|
|
|
allow xend_t self:packet_socket create_socket_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow xend_t xen_image_t:dir list_dir_perms;
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_dirs_pattern(xend_t, xen_image_t, xen_image_t)
|
|
|
|
manage_files_pattern(xend_t, xen_image_t, xen_image_t)
|
|
|
|
read_lnk_files_pattern(xend_t, xen_image_t, xen_image_t)
|
|
|
|
rw_blk_files_pattern(xend_t, xen_image_t, xen_image_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
allow xend_t xenctl_t:fifo_file manage_fifo_file_perms;
|
2006-10-31 21:01:48 +00:00
|
|
|
dev_filetrans(xend_t, xenctl_t, fifo_file)
|
2006-06-07 17:43:10 +00:00
|
|
|
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_files_pattern(xend_t, xend_tmp_t, xend_tmp_t)
|
|
|
|
manage_dirs_pattern(xend_t, xend_tmp_t, xend_tmp_t)
|
2007-06-21 13:36:05 +00:00
|
|
|
files_tmp_filetrans(xend_t, xend_tmp_t, { file dir })
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
# pid file
|
2009-11-25 15:27:31 +00:00
|
|
|
manage_dirs_pattern(xend_t, xend_var_run_t, xend_var_run_t)
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_files_pattern(xend_t, xend_var_run_t, xend_var_run_t)
|
|
|
|
manage_sock_files_pattern(xend_t, xend_var_run_t, xend_var_run_t)
|
|
|
|
manage_fifo_files_pattern(xend_t, xend_var_run_t, xend_var_run_t)
|
2009-11-25 15:27:31 +00:00
|
|
|
files_pid_filetrans(xend_t, xend_var_run_t, { file sock_file fifo_file dir })
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
# log files
|
2009-11-25 15:27:31 +00:00
|
|
|
manage_dirs_pattern(xend_t, xend_var_log_t, xend_var_log_t)
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_files_pattern(xend_t, xend_var_log_t, xend_var_log_t)
|
|
|
|
manage_sock_files_pattern(xend_t, xend_var_log_t, xend_var_log_t)
|
2009-11-25 15:27:31 +00:00
|
|
|
logging_log_filetrans(xend_t, xend_var_log_t, { sock_file file dir })
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
# var/lib files for xend
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_dirs_pattern(xend_t, xend_var_lib_t, xend_var_lib_t)
|
|
|
|
manage_files_pattern(xend_t, xend_var_lib_t, xend_var_lib_t)
|
|
|
|
manage_sock_files_pattern(xend_t, xend_var_lib_t, xend_var_lib_t)
|
|
|
|
manage_fifo_files_pattern(xend_t, xend_var_lib_t, xend_var_lib_t)
|
2009-11-25 15:27:31 +00:00
|
|
|
files_var_lib_filetrans(xend_t, xend_var_lib_t, { file dir })
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
# transition to store
|
2008-10-16 16:09:20 +00:00
|
|
|
domtrans_pattern(xend_t, xenstored_exec_t, xenstored_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
# transition to console
|
2009-11-25 15:27:31 +00:00
|
|
|
domtrans_pattern(xend_t, xenconsoled_exec_t, xenconsoled_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
kernel_read_kernel_sysctls(xend_t)
|
|
|
|
kernel_read_system_state(xend_t)
|
|
|
|
kernel_write_xen_state(xend_t)
|
|
|
|
kernel_read_xen_state(xend_t)
|
|
|
|
kernel_rw_net_sysctls(xend_t)
|
|
|
|
kernel_read_network_state(xend_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(xend_t)
|
|
|
|
corecmd_exec_shell(xend_t)
|
|
|
|
|
2007-06-27 15:23:21 +00:00
|
|
|
corenet_all_recvfrom_unlabeled(xend_t)
|
|
|
|
corenet_all_recvfrom_netlabel(xend_t)
|
2009-01-06 20:24:10 +00:00
|
|
|
corenet_tcp_sendrecv_generic_if(xend_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_sendrecv_generic_node(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
corenet_tcp_sendrecv_all_ports(xend_t)
|
2009-01-09 19:48:02 +00:00
|
|
|
corenet_tcp_bind_generic_node(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
corenet_tcp_bind_xen_port(xend_t)
|
|
|
|
corenet_tcp_bind_soundd_port(xend_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
corenet_tcp_bind_generic_port(xend_t)
|
2006-09-06 16:36:23 +00:00
|
|
|
corenet_tcp_bind_vnc_port(xend_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
corenet_tcp_connect_xserver_port(xend_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
corenet_tcp_connect_xen_port(xend_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
corenet_sendrecv_xserver_client_packets(xend_t)
|
2006-05-29 15:04:49 +00:00
|
|
|
corenet_sendrecv_xen_server_packets(xend_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
corenet_sendrecv_xen_client_packets(xend_t)
|
2006-05-29 15:04:49 +00:00
|
|
|
corenet_sendrecv_soundd_server_packets(xend_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
corenet_rw_tun_tap_dev(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
dev_read_urand(xend_t)
|
|
|
|
dev_manage_xen(xend_t)
|
|
|
|
dev_filetrans_xen(xend_t)
|
|
|
|
dev_rw_sysfs(xend_t)
|
2006-12-04 20:10:56 +00:00
|
|
|
dev_rw_xen(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
domain_read_all_domains_state(xend_t)
|
|
|
|
domain_dontaudit_read_all_domains_state(xend_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
domain_dontaudit_ptrace_all_domains(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
files_read_etc_files(xend_t)
|
2006-04-17 17:32:54 +00:00
|
|
|
files_read_kernel_symbol_table(xend_t)
|
2006-04-26 15:22:33 +00:00
|
|
|
files_read_kernel_img(xend_t)
|
2006-06-07 17:43:10 +00:00
|
|
|
files_manage_etc_runtime_files(xend_t)
|
2009-06-26 14:40:13 +00:00
|
|
|
files_etc_filetrans_etc_runtime(xend_t, file)
|
2006-08-29 02:41:00 +00:00
|
|
|
files_read_usr_files(xend_t)
|
2010-03-19 15:54:50 +00:00
|
|
|
files_read_default_symlinks(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
storage_raw_read_fixed_disk(xend_t)
|
2007-06-21 13:36:05 +00:00
|
|
|
storage_raw_write_fixed_disk(xend_t)
|
2006-09-22 17:14:35 +00:00
|
|
|
storage_raw_read_removable_device(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2010-02-11 19:20:10 +00:00
|
|
|
term_getattr_all_ptys(xend_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
term_use_generic_ptys(xend_t)
|
|
|
|
term_use_ptmx(xend_t)
|
|
|
|
term_getattr_pty_fs(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
init_stream_connect_script(xend_t)
|
|
|
|
|
2006-10-31 21:01:48 +00:00
|
|
|
locallogin_dontaudit_use_fds(xend_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
logging_send_syslog_msg(xend_t)
|
|
|
|
|
2007-06-21 13:36:05 +00:00
|
|
|
lvm_domtrans(xend_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
miscfiles_read_localization(xend_t)
|
|
|
|
|
2007-06-21 13:36:05 +00:00
|
|
|
mount_domtrans(xend_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
sysnet_domtrans_dhcpc(xend_t)
|
|
|
|
sysnet_signal_dhcpc(xend_t)
|
|
|
|
sysnet_domtrans_ifconfig(xend_t)
|
|
|
|
sysnet_dns_name_resolve(xend_t)
|
|
|
|
sysnet_delete_dhcpc_pid(xend_t)
|
|
|
|
sysnet_read_dhcpc_pid(xend_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
sysnet_rw_dhcp_config(xend_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_dontaudit_search_user_home_dirs(xend_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
xen_stream_connect_xenstore(xend_t)
|
|
|
|
|
2006-06-21 18:25:06 +00:00
|
|
|
netutils_domtrans(xend_t)
|
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
optional_policy(`
|
|
|
|
brctl_domtrans(xend_t)
|
|
|
|
')
|
|
|
|
|
2006-05-19 14:02:24 +00:00
|
|
|
optional_policy(`
|
2006-07-28 15:13:58 +00:00
|
|
|
consoletype_exec(xend_t)
|
2006-05-19 14:02:24 +00:00
|
|
|
')
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Xen console local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow xenconsoled_t self:capability { dac_override fsetid ipc_lock };
|
2010-03-19 15:54:50 +00:00
|
|
|
allow xenconsoled_t self:process setrlimit;
|
2006-03-23 19:19:38 +00:00
|
|
|
allow xenconsoled_t self:unix_stream_socket create_stream_socket_perms;
|
2008-10-16 16:09:20 +00:00
|
|
|
allow xenconsoled_t self:fifo_file rw_fifo_file_perms;
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
allow xenconsoled_t xen_devpts_t:chr_file rw_term_perms;
|
|
|
|
|
|
|
|
# pid file
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_files_pattern(xenconsoled_t, xenconsoled_var_run_t, xenconsoled_var_run_t)
|
|
|
|
manage_sock_files_pattern(xenconsoled_t, xenconsoled_var_run_t, xenconsoled_var_run_t)
|
|
|
|
files_pid_filetrans(xenconsoled_t, xenconsoled_var_run_t, { file sock_file })
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
kernel_read_kernel_sysctls(xenconsoled_t)
|
|
|
|
kernel_write_xen_state(xenconsoled_t)
|
|
|
|
kernel_read_xen_state(xenconsoled_t)
|
|
|
|
|
2006-12-04 20:10:56 +00:00
|
|
|
dev_manage_xen(xenconsoled_t)
|
|
|
|
dev_filetrans_xen(xenconsoled_t)
|
|
|
|
dev_rw_sysfs(xenconsoled_t)
|
|
|
|
|
2006-08-29 02:41:00 +00:00
|
|
|
domain_dontaudit_ptrace_all_domains(xenconsoled_t)
|
|
|
|
|
2010-03-19 15:54:50 +00:00
|
|
|
files_read_etc_files(xenconsoled_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
files_read_usr_files(xenconsoled_t)
|
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
fs_list_tmpfs(xenconsoled_t)
|
|
|
|
fs_manage_xenfs_dirs(xenconsoled_t)
|
|
|
|
fs_manage_xenfs_files(xenconsoled_t)
|
|
|
|
|
2009-06-26 14:40:13 +00:00
|
|
|
term_create_pty(xenconsoled_t, xen_devpts_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
term_use_generic_ptys(xenconsoled_t)
|
2006-05-19 14:02:24 +00:00
|
|
|
term_use_console(xenconsoled_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
init_use_fds(xenconsoled_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
init_use_script_ptys(xenconsoled_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
miscfiles_read_localization(xenconsoled_t)
|
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
xen_manage_log(xenconsoled_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
xen_stream_connect_xenstore(xenconsoled_t)
|
|
|
|
|
2010-03-19 15:54:50 +00:00
|
|
|
optional_policy(`
|
|
|
|
ptchown_domtrans(xenconsoled_t)
|
|
|
|
')
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Xen store local policy
|
|
|
|
#
|
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
allow xenstored_t self:capability { dac_override mknod ipc_lock sys_resource };
|
2006-03-23 19:19:38 +00:00
|
|
|
allow xenstored_t self:unix_stream_socket create_stream_socket_perms;
|
2006-05-19 14:02:24 +00:00
|
|
|
allow xenstored_t self:unix_dgram_socket create_socket_perms;
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
manage_files_pattern(xenstored_t, xenstored_tmp_t, xenstored_tmp_t)
|
|
|
|
manage_dirs_pattern(xenstored_t, xenstored_tmp_t, xenstored_tmp_t)
|
|
|
|
files_tmp_filetrans(xenstored_t, xenstored_tmp_t, { file dir })
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
# pid file
|
2010-08-26 13:41:21 +00:00
|
|
|
manage_dirs_pattern(xenstored_t, xenstored_var_run_t, xenstored_var_run_t)
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_files_pattern(xenstored_t, xenstored_var_run_t, xenstored_var_run_t)
|
|
|
|
manage_sock_files_pattern(xenstored_t, xenstored_var_run_t, xenstored_var_run_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
files_pid_filetrans(xenstored_t, xenstored_var_run_t, { file sock_file dir })
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
# log files
|
|
|
|
manage_dirs_pattern(xenstored_t, xenstored_var_log_t, xenstored_var_log_t)
|
|
|
|
manage_files_pattern(xenstored_t, xenstored_var_log_t, xenstored_var_log_t)
|
|
|
|
manage_sock_files_pattern(xenstored_t, xenstored_var_log_t, xenstored_var_log_t)
|
|
|
|
logging_log_filetrans(xenstored_t, xenstored_var_log_t, { sock_file file dir })
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
# var/lib files for xenstored
|
2009-06-26 14:40:13 +00:00
|
|
|
manage_dirs_pattern(xenstored_t, xenstored_var_lib_t, xenstored_var_lib_t)
|
|
|
|
manage_files_pattern(xenstored_t, xenstored_var_lib_t, xenstored_var_lib_t)
|
|
|
|
manage_sock_files_pattern(xenstored_t, xenstored_var_lib_t, xenstored_var_lib_t)
|
2009-11-25 15:27:31 +00:00
|
|
|
files_var_lib_filetrans(xenstored_t, xenstored_var_lib_t, { file dir sock_file })
|
|
|
|
|
|
|
|
stream_connect_pattern(xenstored_t, evtchnd_var_run_t, evtchnd_var_run_t, evtchnd_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
kernel_write_xen_state(xenstored_t)
|
|
|
|
kernel_read_xen_state(xenstored_t)
|
|
|
|
|
|
|
|
dev_create_generic_dirs(xenstored_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
dev_manage_xen(xenstored_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
dev_filetrans_xen(xenstored_t)
|
2006-04-17 17:32:54 +00:00
|
|
|
dev_rw_xen(xenstored_t)
|
2006-10-31 21:01:48 +00:00
|
|
|
dev_read_sysfs(xenstored_t)
|
|
|
|
|
|
|
|
files_read_usr_files(xenstored_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2010-08-26 13:41:21 +00:00
|
|
|
fs_search_xenfs(xenstored_t)
|
2010-03-19 15:54:50 +00:00
|
|
|
fs_manage_xenfs_files(xenstored_t)
|
|
|
|
|
2007-06-21 13:36:05 +00:00
|
|
|
storage_raw_read_fixed_disk(xenstored_t)
|
|
|
|
storage_raw_write_fixed_disk(xenstored_t)
|
|
|
|
storage_raw_read_removable_device(xenstored_t)
|
|
|
|
|
2006-08-29 02:41:00 +00:00
|
|
|
term_use_generic_ptys(xenstored_t)
|
2010-08-26 13:41:21 +00:00
|
|
|
term_use_console(xenconsoled_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
|
|
|
init_use_fds(xenstored_t)
|
2006-08-29 02:41:00 +00:00
|
|
|
init_use_script_ptys(xenstored_t)
|
2006-03-23 19:19:38 +00:00
|
|
|
|
2006-05-19 14:02:24 +00:00
|
|
|
logging_send_syslog_msg(xenstored_t)
|
|
|
|
|
2006-03-23 19:19:38 +00:00
|
|
|
miscfiles_read_localization(xenstored_t)
|
|
|
|
|
|
|
|
xen_append_log(xenstored_t)
|
2006-05-03 19:58:01 +00:00
|
|
|
|
2009-11-25 15:27:31 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# SSH component local policy
|
|
|
|
#
|
|
|
|
optional_policy(`
|
|
|
|
#Should have a boolean wrapping these
|
|
|
|
fs_list_auto_mountpoints(xend_t)
|
|
|
|
files_search_mnt(xend_t)
|
|
|
|
fs_getattr_all_fs(xend_t)
|
|
|
|
fs_read_dos_files(xend_t)
|
|
|
|
fs_manage_xenfs_dirs(xend_t)
|
|
|
|
fs_manage_xenfs_files(xend_t)
|
|
|
|
|
|
|
|
tunable_policy(`xen_use_nfs',`
|
|
|
|
fs_manage_nfs_files(xend_t)
|
|
|
|
fs_read_nfs_symlinks(xend_t)
|
|
|
|
')
|
|
|
|
')
|