Chris PeBenito 9401ae1
policy_module(tuned, 1.1.0)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# Declarations
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type tuned_t;
Chris PeBenito 9401ae1
type tuned_exec_t;
Chris PeBenito 9401ae1
init_daemon_domain(tuned_t, tuned_exec_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type tuned_initrc_exec_t;
Chris PeBenito 9401ae1
init_script_file(tuned_initrc_exec_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type tuned_log_t;
Chris PeBenito 9401ae1
logging_log_file(tuned_log_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
type tuned_var_run_t;
Chris PeBenito 9401ae1
files_pid_file(tuned_var_run_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
########################################
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
# tuned local policy
Chris PeBenito 9401ae1
#
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dontaudit tuned_t self:capability { dac_override sys_tty_config };
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_dirs_pattern(tuned_t, tuned_log_t, tuned_log_t)
Chris PeBenito 9401ae1
manage_files_pattern(tuned_t, tuned_log_t, tuned_log_t)
Chris PeBenito 9401ae1
logging_log_filetrans(tuned_t, tuned_log_t, file)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
manage_files_pattern(tuned_t, tuned_var_run_t, tuned_var_run_t)
Chris PeBenito 9401ae1
files_pid_filetrans(tuned_t, tuned_var_run_t, file)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
corecmd_exec_shell(tuned_t)
Chris PeBenito 9401ae1
corecmd_exec_bin(tuned_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
kernel_read_system_state(tuned_t)
Chris PeBenito 9401ae1
kernel_read_network_state(tuned_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
dev_read_urand(tuned_t)
Chris PeBenito 9401ae1
dev_read_sysfs(tuned_t)
Chris PeBenito 9401ae1
# to allow cpu tuning
Chris PeBenito 9401ae1
dev_rw_netcontrol(tuned_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
files_read_etc_files(tuned_t)
Chris PeBenito 9401ae1
files_read_usr_files(tuned_t)
Chris PeBenito 9401ae1
files_dontaudit_search_home(tuned_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
logging_send_syslog_msg(tuned_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
miscfiles_read_localization(tuned_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
userdom_dontaudit_search_user_home_dirs(tuned_t)
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
# to allow disk tuning
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	fstools_domtrans(tuned_t)
Chris PeBenito 9401ae1
')
Chris PeBenito 9401ae1
Chris PeBenito 9401ae1
# to allow network interface tuning
Chris PeBenito 9401ae1
optional_policy(`
Chris PeBenito 9401ae1
	sysnet_domtrans_ifconfig(tuned_t)
Chris PeBenito 9401ae1
')