2005-11-28 19:06:22 +00:00
|
|
|
|
2007-02-16 23:01:42 +00:00
|
|
|
policy_module(irqbalance,1.0.1)
|
2005-11-28 19:06:22 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type irqbalance_t;
|
|
|
|
type irqbalance_exec_t;
|
|
|
|
init_daemon_domain(irqbalance_t,irqbalance_exec_t)
|
|
|
|
|
|
|
|
type irqbalance_var_run_t;
|
|
|
|
files_pid_file(irqbalance_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2007-02-16 23:01:42 +00:00
|
|
|
allow irqbalance_t self:capability net_admin;
|
|
|
|
allow irqbalance_t self:udp_socket create_socket_perms;
|
|
|
|
|
2005-11-28 19:06:22 +00:00
|
|
|
dontaudit irqbalance_t self:capability sys_tty_config;
|
|
|
|
allow irqbalance_t self:process signal_perms;
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
manage_files_pattern(irqbalance_t,irqbalance_var_run_t,irqbalance_var_run_t)
|
2006-03-02 23:41:11 +00:00
|
|
|
files_pid_filetrans(irqbalance_t,irqbalance_var_run_t,file)
|
2005-11-28 19:06:22 +00:00
|
|
|
|
2007-02-16 23:01:42 +00:00
|
|
|
kernel_read_network_state(irqbalance_t)
|
2005-11-28 19:06:22 +00:00
|
|
|
kernel_read_system_state(irqbalance_t)
|
2006-01-31 16:49:43 +00:00
|
|
|
kernel_read_kernel_sysctls(irqbalance_t)
|
|
|
|
kernel_rw_irq_sysctls(irqbalance_t)
|
2005-11-28 19:06:22 +00:00
|
|
|
|
|
|
|
dev_read_sysfs(irqbalance_t)
|
|
|
|
|
2006-02-06 22:47:46 +00:00
|
|
|
files_read_etc_files(irqbalance_t)
|
|
|
|
files_read_etc_runtime_files(irqbalance_t)
|
|
|
|
|
2005-11-28 19:06:22 +00:00
|
|
|
fs_getattr_all_fs(irqbalance_t)
|
|
|
|
fs_search_auto_mountpoints(irqbalance_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(irqbalance_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
domain_use_interactive_fds(irqbalance_t)
|
2005-11-28 19:06:22 +00:00
|
|
|
|
2006-03-02 23:41:11 +00:00
|
|
|
init_use_fds(irqbalance_t)
|
2006-02-02 21:08:12 +00:00
|
|
|
init_use_script_ptys(irqbalance_t)
|
2005-11-28 19:06:22 +00:00
|
|
|
|
|
|
|
libs_use_ld_so(irqbalance_t)
|
|
|
|
libs_use_shared_libs(irqbalance_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(irqbalance_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(irqbalance_t)
|
|
|
|
|
2006-02-20 21:33:25 +00:00
|
|
|
userdom_dontaudit_use_unpriv_user_fds(irqbalance_t)
|
2006-02-21 18:40:44 +00:00
|
|
|
userdom_dontaudit_search_sysadm_home_dirs(irqbalance_t)
|
2005-11-28 19:06:22 +00:00
|
|
|
|
|
|
|
ifdef(`targeted_policy',`
|
2006-02-02 21:08:12 +00:00
|
|
|
term_dontaudit_use_unallocated_ttys(irqbalance_t)
|
|
|
|
term_dontaudit_use_generic_ptys(irqbalance_t)
|
2006-01-31 19:21:01 +00:00
|
|
|
files_dontaudit_read_root_files(irqbalance_t)
|
2005-11-28 19:06:22 +00:00
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-28 19:06:22 +00:00
|
|
|
seutil_sigchld_newrole(irqbalance_t)
|
|
|
|
')
|
|
|
|
|
2006-03-24 16:13:54 +00:00
|
|
|
optional_policy(`
|
2005-11-28 19:06:22 +00:00
|
|
|
udev_read_db(irqbalance_t)
|
|
|
|
')
|