|
Chris PeBenito |
b04669 |
|
|
Chris PeBenito |
29af4c |
policy_module(tuned, 1.1.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 |
461b53 |
type tuned_log_t;
|
|
Chris PeBenito |
461b53 |
logging_log_file(tuned_log_t)
|
|
Chris PeBenito |
461b53 |
|
|
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 |
b11dcd |
dontaudit tuned_t self:capability { dac_override sys_tty_config };
|
|
Chris PeBenito |
b04669 |
|
|
Chris PeBenito |
461b53 |
manage_dirs_pattern(tuned_t, tuned_log_t, tuned_log_t)
|
|
Chris PeBenito |
461b53 |
manage_files_pattern(tuned_t, tuned_log_t, tuned_log_t)
|
|
Chris PeBenito |
461b53 |
logging_log_filetrans(tuned_t, tuned_log_t, file)
|
|
Chris PeBenito |
461b53 |
|
|
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 |
461b53 |
corecmd_exec_bin(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 |
461b53 |
dev_read_urand(tuned_t)
|
|
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 |
461b53 |
logging_send_syslog_msg(tuned_t)
|
|
Chris PeBenito |
461b53 |
|
|
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 |
')
|