Chris PeBenito 17de1b
Chris PeBenito 17de1b
policy_module(irqbalance,1.0.0)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type irqbalance_t;
Chris PeBenito 17de1b
type irqbalance_exec_t;
Chris PeBenito 17de1b
init_daemon_domain(irqbalance_t,irqbalance_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type irqbalance_var_run_t;
Chris PeBenito 17de1b
files_pid_file(irqbalance_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
dontaudit irqbalance_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow irqbalance_t self:process signal_perms;
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow irqbalance_t irqbalance_var_run_t:file create_file_perms;
Chris PeBenito 17de1b
allow irqbalance_t irqbalance_var_run_t:dir rw_dir_perms;
Chris PeBenito 17de1b
files_pid_filetrans(irqbalance_t,irqbalance_var_run_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_system_state(irqbalance_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(irqbalance_t)
Chris PeBenito 17de1b
kernel_rw_irq_sysctls(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(irqbalance_t)
Chris PeBenito 17de1b
files_read_etc_runtime_files(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_getattr_all_fs(irqbalance_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
term_dontaudit_use_console(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
init_use_fds(irqbalance_t)
Chris PeBenito 17de1b
init_use_script_ptys(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
libs_use_ld_so(irqbalance_t)
Chris PeBenito 17de1b
libs_use_shared_libs(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(irqbalance_t)
Chris PeBenito 17de1b
userdom_dontaudit_search_sysadm_home_dirs(irqbalance_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
ifdef(`targeted_policy',`
Chris PeBenito 17de1b
	term_dontaudit_use_unallocated_ttys(irqbalance_t)
Chris PeBenito 17de1b
	term_dontaudit_use_generic_ptys(irqbalance_t)
Chris PeBenito 17de1b
	files_dontaudit_read_root_files(irqbalance_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(irqbalance_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(irqbalance_t)
Chris PeBenito 17de1b
')