Chris PeBenito 17de1b
Chris PeBenito 0251df
policy_module(pxe,1.1.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# cjp: policy seems incomplete
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type pxe_t;
Chris PeBenito 17de1b
type pxe_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(pxe_t,pxe_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type pxe_log_t;
Chris PeBenito 17de1b
logging_log_file(pxe_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type pxe_var_run_t;
Chris PeBenito 17de1b
files_pid_file(pxe_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Local policy
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow pxe_t self:capability { chown setgid setuid };
Chris PeBenito 17de1b
dontaudit pxe_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow pxe_t self:process signal_perms;
Chris PeBenito 17de1b
Chris PeBenito c0868a
allow pxe_t pxe_log_t:file manage_file_perms;
Chris PeBenito 17de1b
logging_log_filetrans(pxe_t,pxe_log_t,file)
Chris PeBenito 17de1b
Chris PeBenito c0868a
manage_files_pattern(pxe_t,pxe_var_run_t,pxe_var_run_t)
Chris PeBenito 17de1b
files_pid_filetrans(pxe_t,pxe_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(pxe_t)
Chris PeBenito 17de1b
kernel_list_proc(pxe_t)
Chris PeBenito 17de1b
kernel_read_proc_symlinks(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
corenet_udp_bind_pxe_port(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(pxe_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(pxe_t)
Chris PeBenito 17de1b
libs_use_shared_libs(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(pxe_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(pxe_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`targeted_policy',`
Chris PeBenito 17de1b
	term_dontaudit_use_unallocated_ttys(pxe_t)
Chris PeBenito 17de1b
	term_dontaudit_use_generic_ptys(pxe_t)
Chris PeBenito 17de1b
	files_dontaudit_read_root_files(pxe_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(pxe_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(pxe_t)
Chris PeBenito 17de1b
')