Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
policy_module(vhostmd, 1.0.0)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
########################################
Chris PeBenito 6d4dbd
#
Chris PeBenito 6d4dbd
# Declarations
Chris PeBenito 6d4dbd
#
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
type vhostmd_t;
Chris PeBenito 6d4dbd
type vhostmd_exec_t;
Chris PeBenito 6d4dbd
init_daemon_domain(vhostmd_t, vhostmd_exec_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
type vhostmd_initrc_exec_t;
Chris PeBenito 6d4dbd
init_script_file(vhostmd_initrc_exec_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
type vhostmd_tmpfs_t;
Chris PeBenito 6d4dbd
files_tmpfs_file(vhostmd_tmpfs_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
type vhostmd_var_run_t;
Chris PeBenito 6d4dbd
files_pid_file(vhostmd_var_run_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
########################################
Chris PeBenito 6d4dbd
#
Chris PeBenito 6d4dbd
# vhostmd local policy
Chris PeBenito 6d4dbd
#
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
allow vhostmd_t self:capability { dac_override ipc_lock	setuid setgid };
Chris PeBenito 6d4dbd
allow vhostmd_t self:process { setsched getsched };
Chris PeBenito 6d4dbd
allow vhostmd_t self:fifo_file rw_file_perms;
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
manage_dirs_pattern(vhostmd_t, vhostmd_tmpfs_t, vhostmd_tmpfs_t)
Chris PeBenito 6d4dbd
manage_files_pattern(vhostmd_t, vhostmd_tmpfs_t, vhostmd_tmpfs_t)
Chris PeBenito 6d4dbd
fs_tmpfs_filetrans(vhostmd_t, vhostmd_tmpfs_t, { file dir })
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
manage_dirs_pattern(vhostmd_t, vhostmd_var_run_t, vhostmd_var_run_t)
Chris PeBenito 6d4dbd
manage_files_pattern(vhostmd_t, vhostmd_var_run_t, vhostmd_var_run_t)
Chris PeBenito 6d4dbd
files_pid_filetrans(vhostmd_t, vhostmd_var_run_t, { file dir })
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
kernel_read_system_state(vhostmd_t)
Chris PeBenito 6d4dbd
kernel_read_network_state(vhostmd_t)
Chris PeBenito 6d4dbd
kernel_write_xen_state(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
corecmd_exec_bin(vhostmd_t)
Chris PeBenito 6d4dbd
corecmd_exec_shell(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
corenet_tcp_connect_soundd_port(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
files_read_etc_files(vhostmd_t)
Chris PeBenito 6d4dbd
files_read_usr_files(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
dev_read_sysfs(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
auth_use_nsswitch(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
logging_send_syslog_msg(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
miscfiles_read_localization(vhostmd_t)
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
optional_policy(`
Chris PeBenito 6d4dbd
	hostname_exec(vhostmd_t)
Chris PeBenito 6d4dbd
')
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
optional_policy(`
Chris PeBenito 6d4dbd
	rpm_exec(vhostmd_t)
Chris PeBenito 6d4dbd
	rpm_read_db(vhostmd_t)
Chris PeBenito 6d4dbd
')
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
optional_policy(`
Chris PeBenito 6d4dbd
	virt_stream_connect(vhostmd_t)
Chris PeBenito 6d4dbd
')
Chris PeBenito 6d4dbd
Chris PeBenito 6d4dbd
optional_policy(`
Chris PeBenito 6d4dbd
	xen_domtrans_xm(vhostmd_t)
Chris PeBenito 6d4dbd
	xen_stream_connect(vhostmd_t)
Chris PeBenito 6d4dbd
	xen_stream_connect_xenstore(vhostmd_t)
Chris PeBenito 6d4dbd
	xen_stream_connect_xm(vhostmd_t)
Chris PeBenito 6d4dbd
')