Chris PeBenito 3411c3
Chris PeBenito 3411c3
policy_module(pxe,1.0.0)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
# cjp: policy seems incomplete
Chris PeBenito 3411c3
Chris PeBenito 3411c3
########################################
Chris PeBenito 3411c3
#
Chris PeBenito 3411c3
# Declarations
Chris PeBenito 3411c3
#
Chris PeBenito 3411c3
Chris PeBenito 3411c3
type pxe_t;
Chris PeBenito 3411c3
type pxe_exec_t;
Chris PeBenito 3411c3
init_daemon_domain(pxe_t,pxe_exec_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
type pxe_log_t;
Chris PeBenito 3411c3
logging_log_file(pxe_log_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
type pxe_var_run_t;
Chris PeBenito 3411c3
files_pid_file(pxe_var_run_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
########################################
Chris PeBenito 3411c3
#
Chris PeBenito 3411c3
# Local policy
Chris PeBenito 3411c3
#
Chris PeBenito 3411c3
Chris PeBenito 3411c3
allow pxe_t self:capability { chown setgid setuid };
Chris PeBenito 3411c3
dontaudit pxe_t self:capability sys_tty_config;
Chris PeBenito 3411c3
allow pxe_t self:process signal_perms;
Chris PeBenito 3411c3
Chris PeBenito 3411c3
allow pxe_t pxe_log_t:file create_file_perms;
Chris PeBenito 3411c3
logging_log_filetrans(pxe_t,pxe_log_t,file)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
allow pxe_t pxe_var_run_t:file create_file_perms;
Chris PeBenito 3411c3
allow pxe_t pxe_var_run_t:dir rw_dir_perms;
Chris PeBenito 3411c3
files_pid_filetrans(pxe_t,pxe_var_run_t,file)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
kernel_read_kernel_sysctls(pxe_t)
Chris PeBenito 3411c3
kernel_list_proc(pxe_t)
Chris PeBenito 3411c3
kernel_read_proc_symlinks(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
corenet_udp_bind_pxe_port(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
dev_read_sysfs(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
domain_use_interactive_fds(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
files_read_etc_files(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
fs_getattr_all_fs(pxe_t)
Chris PeBenito 3411c3
fs_search_auto_mountpoints(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
term_dontaudit_use_console(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
init_use_fds(pxe_t)
Chris PeBenito 3411c3
init_use_script_ptys(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
libs_use_ld_so(pxe_t)
Chris PeBenito 3411c3
libs_use_shared_libs(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
logging_send_syslog_msg(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
miscfiles_read_localization(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
userdom_dontaudit_use_unpriv_user_fds(pxe_t)
Chris PeBenito 3411c3
userdom_dontaudit_search_sysadm_home_dirs(pxe_t)
Chris PeBenito 3411c3
Chris PeBenito 3411c3
ifdef(`targeted_policy',`
Chris PeBenito 3411c3
	term_dontaudit_use_unallocated_ttys(pxe_t)
Chris PeBenito 3411c3
	term_dontaudit_use_generic_ptys(pxe_t)
Chris PeBenito 3411c3
	files_dontaudit_read_root_files(pxe_t)
Chris PeBenito 3411c3
')
Chris PeBenito 3411c3
Chris PeBenito 3411c3
optional_policy(`
Chris PeBenito 3411c3
	seutil_sigchld_newrole(pxe_t)
Chris PeBenito 3411c3
')
Chris PeBenito 3411c3
Chris PeBenito 3411c3
optional_policy(`
Chris PeBenito 3411c3
	udev_read_db(pxe_t)
Chris PeBenito 3411c3
')