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 1c1ac6
files_pid_filetrans(irqbalance_t,irqbalance_var_run_t,file)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
kernel_read_system_state(irqbalance_t)
Chris PeBenito 445522
kernel_read_kernel_sysctls(irqbalance_t)
Chris PeBenito 445522
kernel_rw_irq_sysctls(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
dev_read_sysfs(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 955019
files_read_etc_files(irqbalance_t)
Chris PeBenito 955019
files_read_etc_runtime_files(irqbalance_t)
Chris PeBenito 955019
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 15722e
domain_use_interactive_fds(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 1c1ac6
init_use_fds(irqbalance_t)
Chris PeBenito 1815ba
init_use_script_ptys(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 15722e
userdom_dontaudit_use_unpriv_user_fds(irqbalance_t)
Chris PeBenito 103fe2
userdom_dontaudit_search_sysadm_home_dirs(irqbalance_t)
Chris PeBenito 5d5ea8
Chris PeBenito 5d5ea8
ifdef(`targeted_policy',`
Chris PeBenito 1815ba
	term_dontaudit_use_unallocated_ttys(irqbalance_t)
Chris PeBenito 1815ba
	term_dontaudit_use_generic_ptys(irqbalance_t)
Chris PeBenito 9e04f5
	files_dontaudit_read_root_files(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
')