Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
policy_module(irqbalance,1.0.0)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
########################################
Chris PeBenito 5d5ea8
#
Chris PeBenito 5d5ea8
# Declarations
Chris PeBenito 5d5ea8
#
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
type irqbalance_t;
Chris PeBenito 5d5ea8
type irqbalance_exec_t;
Chris PeBenito 5d5ea8
init_daemon_domain(irqbalance_t,irqbalance_exec_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
type irqbalance_var_run_t;
Chris PeBenito 5d5ea8
files_pid_file(irqbalance_var_run_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
########################################
Chris PeBenito 5d5ea8
#
Chris PeBenito 5d5ea8
# Local policy
Chris PeBenito 5d5ea8
#
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
dontaudit irqbalance_t self:capability sys_tty_config;
Chris PeBenito 5d5ea8
allow irqbalance_t self:process signal_perms;
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
allow irqbalance_t irqbalance_var_run_t:file create_file_perms;
Chris PeBenito 5d5ea8
allow irqbalance_t irqbalance_var_run_t:dir rw_dir_perms;
Chris PeBenito 9d5949
files_filetrans_pid(irqbalance_t,irqbalance_var_run_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
kernel_read_system_state(irqbalance_t)
Chris PeBenito 5d5ea8
kernel_read_kernel_sysctl(irqbalance_t)
Chris PeBenito 5d5ea8
kernel_rw_irq_sysctl(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
dev_read_sysfs(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
fs_getattr_all_fs(irqbalance_t)
Chris PeBenito 5d5ea8
fs_search_auto_mountpoints(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
term_dontaudit_use_console(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
domain_use_wide_inherit_fd(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
init_use_fd(irqbalance_t)
Chris PeBenito 5d5ea8
init_use_script_pty(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
libs_use_ld_so(irqbalance_t)
Chris PeBenito 5d5ea8
libs_use_shared_libs(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
logging_send_syslog_msg(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
miscfiles_read_localization(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
userdom_dontaudit_use_unpriv_user_fd(irqbalance_t)
Chris PeBenito 5d5ea8
userdom_dontaudit_search_sysadm_home_dir(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
ifdef(`targeted_policy',`
Chris PeBenito 5d5ea8
	term_dontaudit_use_unallocated_tty(irqbalance_t)
Chris PeBenito 5d5ea8
	term_dontaudit_use_generic_pty(irqbalance_t)
Chris PeBenito 5d5ea8
	files_dontaudit_read_root_file(irqbalance_t)
Chris PeBenito 5d5ea8
')
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
optional_policy(`selinuxutil',`
Chris PeBenito 5d5ea8
	seutil_sigchld_newrole(irqbalance_t)
Chris PeBenito 5d5ea8
')
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
optional_policy(`udev',`
Chris PeBenito 5d5ea8
	udev_read_db(irqbalance_t)
Chris PeBenito 5d5ea8
')