2009-10-26 13:42:11 +00:00
|
|
|
|
2010-05-24 19:32:01 +00:00
|
|
|
policy_module(tuned, 1.1.0)
|
2009-10-26 13:42:11 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type tuned_t;
|
|
|
|
type tuned_exec_t;
|
|
|
|
init_daemon_domain(tuned_t, tuned_exec_t)
|
|
|
|
|
|
|
|
type tuned_initrc_exec_t;
|
|
|
|
init_script_file(tuned_initrc_exec_t)
|
|
|
|
|
2010-03-22 14:33:31 +00:00
|
|
|
type tuned_log_t;
|
|
|
|
logging_log_file(tuned_log_t)
|
|
|
|
|
2009-10-26 13:42:11 +00:00
|
|
|
type tuned_var_run_t;
|
|
|
|
files_pid_file(tuned_var_run_t)
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# tuned local policy
|
|
|
|
#
|
|
|
|
|
2009-12-18 15:45:56 +00:00
|
|
|
dontaudit tuned_t self:capability { dac_override sys_tty_config };
|
2009-10-26 13:42:11 +00:00
|
|
|
|
2010-03-22 14:33:31 +00:00
|
|
|
manage_dirs_pattern(tuned_t, tuned_log_t, tuned_log_t)
|
|
|
|
manage_files_pattern(tuned_t, tuned_log_t, tuned_log_t)
|
|
|
|
logging_log_filetrans(tuned_t, tuned_log_t, file)
|
|
|
|
|
2009-10-26 13:42:11 +00:00
|
|
|
manage_files_pattern(tuned_t, tuned_var_run_t, tuned_var_run_t)
|
|
|
|
files_pid_filetrans(tuned_t, tuned_var_run_t, file)
|
|
|
|
|
|
|
|
corecmd_exec_shell(tuned_t)
|
2010-03-22 14:33:31 +00:00
|
|
|
corecmd_exec_bin(tuned_t)
|
2009-10-26 13:42:11 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(tuned_t)
|
|
|
|
kernel_read_network_state(tuned_t)
|
|
|
|
|
2010-03-22 14:33:31 +00:00
|
|
|
dev_read_urand(tuned_t)
|
2009-10-26 13:42:11 +00:00
|
|
|
dev_read_sysfs(tuned_t)
|
|
|
|
# to allow cpu tuning
|
|
|
|
dev_rw_netcontrol(tuned_t)
|
|
|
|
|
|
|
|
files_read_etc_files(tuned_t)
|
|
|
|
files_read_usr_files(tuned_t)
|
|
|
|
files_dontaudit_search_home(tuned_t)
|
|
|
|
|
2010-03-22 14:33:31 +00:00
|
|
|
logging_send_syslog_msg(tuned_t)
|
|
|
|
|
2009-10-26 13:42:11 +00:00
|
|
|
miscfiles_read_localization(tuned_t)
|
|
|
|
|
|
|
|
userdom_dontaudit_search_user_home_dirs(tuned_t)
|
|
|
|
|
|
|
|
# to allow disk tuning
|
|
|
|
optional_policy(`
|
|
|
|
fstools_domtrans(tuned_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
# to allow network interface tuning
|
|
|
|
optional_policy(`
|
|
|
|
sysnet_domtrans_ifconfig(tuned_t)
|
|
|
|
')
|