Chris PeBenito b04669
Chris PeBenito b04669
policy_module(tuned, 1.0.0)
Chris PeBenito b04669
Chris PeBenito b04669
########################################
Chris PeBenito b04669
#
Chris PeBenito b04669
# Declarations
Chris PeBenito b04669
#
Chris PeBenito b04669
Chris PeBenito b04669
type tuned_t;
Chris PeBenito b04669
type tuned_exec_t;
Chris PeBenito b04669
init_daemon_domain(tuned_t, tuned_exec_t)
Chris PeBenito b04669
Chris PeBenito b04669
type tuned_initrc_exec_t;
Chris PeBenito b04669
init_script_file(tuned_initrc_exec_t)
Chris PeBenito b04669
Chris PeBenito b04669
type tuned_var_run_t;
Chris PeBenito b04669
files_pid_file(tuned_var_run_t)
Chris PeBenito b04669
Chris PeBenito b04669
########################################
Chris PeBenito b04669
#
Chris PeBenito b04669
# tuned local policy
Chris PeBenito b04669
#
Chris PeBenito b04669
Chris PeBenito b04669
dontaudit tuned_t self:capability dac_override;
Chris PeBenito b04669
Chris PeBenito b04669
manage_files_pattern(tuned_t, tuned_var_run_t, tuned_var_run_t)
Chris PeBenito b04669
files_pid_filetrans(tuned_t, tuned_var_run_t, file)
Chris PeBenito b04669
Chris PeBenito b04669
corecmd_exec_shell(tuned_t)
Chris PeBenito b04669
Chris PeBenito b04669
kernel_read_system_state(tuned_t)
Chris PeBenito b04669
kernel_read_network_state(tuned_t)
Chris PeBenito b04669
Chris PeBenito b04669
dev_read_sysfs(tuned_t)
Chris PeBenito b04669
# to allow cpu tuning
Chris PeBenito b04669
dev_rw_netcontrol(tuned_t)
Chris PeBenito b04669
Chris PeBenito b04669
files_read_etc_files(tuned_t)
Chris PeBenito b04669
files_read_usr_files(tuned_t)
Chris PeBenito b04669
files_dontaudit_search_home(tuned_t)
Chris PeBenito b04669
Chris PeBenito b04669
miscfiles_read_localization(tuned_t)
Chris PeBenito b04669
Chris PeBenito b04669
userdom_dontaudit_search_user_home_dirs(tuned_t)
Chris PeBenito b04669
Chris PeBenito b04669
# to allow disk tuning
Chris PeBenito b04669
optional_policy(`
Chris PeBenito b04669
	fstools_domtrans(tuned_t)
Chris PeBenito b04669
')
Chris PeBenito b04669
Chris PeBenito b04669
# to allow network interface tuning
Chris PeBenito b04669
optional_policy(`
Chris PeBenito b04669
	sysnet_domtrans_ifconfig(tuned_t)
Chris PeBenito b04669
')