|
Chris PeBenito |
ad0071 |
policy_module(ksmtuned, 1.0.0)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
########################################
|
|
Jeremy Solt |
d279dd |
#
|
|
Jeremy Solt |
d279dd |
# Declarations
|
|
Jeremy Solt |
d279dd |
#
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
type ksmtuned_t;
|
|
Jeremy Solt |
d279dd |
type ksmtuned_exec_t;
|
|
Jeremy Solt |
d279dd |
init_daemon_domain(ksmtuned_t, ksmtuned_exec_t)
|
|
Jeremy Solt |
d279dd |
|
|
Dan Walsh |
3eaa99 |
type ksmtuned_log_t;
|
|
Dan Walsh |
3eaa99 |
logging_log_file(ksmtuned_log_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Jeremy Solt |
d279dd |
type ksmtuned_initrc_exec_t;
|
|
Jeremy Solt |
d279dd |
init_script_file(ksmtuned_initrc_exec_t)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
type ksmtuned_var_run_t;
|
|
Jeremy Solt |
d279dd |
files_pid_file(ksmtuned_var_run_t)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
########################################
|
|
Jeremy Solt |
d279dd |
#
|
|
Jeremy Solt |
d279dd |
# ksmtuned local policy
|
|
Jeremy Solt |
d279dd |
#
|
|
Jeremy Solt |
d279dd |
|
|
Chris PeBenito |
ad0071 |
allow ksmtuned_t self:capability { sys_ptrace sys_tty_config };
|
|
Jeremy Solt |
d279dd |
allow ksmtuned_t self:fifo_file rw_file_perms;
|
|
Jeremy Solt |
d279dd |
|
|
Dan Walsh |
3eaa99 |
manage_dirs_pattern(ksmtuned_t, ksmtuned_log_t, ksmtuned_log_t)
|
|
Dan Walsh |
3eaa99 |
manage_files_pattern(ksmtuned_t, ksmtuned_log_t, ksmtuned_log_t)
|
|
Dan Walsh |
3eaa99 |
logging_log_filetrans(ksmtuned_t, ksmtuned_log_t, { file dir })
|
|
Dan Walsh |
3eaa99 |
|
|
Jeremy Solt |
d279dd |
manage_files_pattern(ksmtuned_t, ksmtuned_var_run_t, ksmtuned_var_run_t)
|
|
Jeremy Solt |
d279dd |
files_pid_filetrans(ksmtuned_t, ksmtuned_var_run_t, file)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
kernel_read_system_state(ksmtuned_t)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
dev_rw_sysfs(ksmtuned_t)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
domain_read_all_domains_state(ksmtuned_t)
|
|
Dan Walsh |
3eaa99 |
domain_dontaudit_read_all_domains_state(ksmtuned_t)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
corecmd_exec_bin(ksmtuned_t)
|
|
Jeremy Solt |
d279dd |
|
|
Jeremy Solt |
d279dd |
files_read_etc_files(ksmtuned_t)
|
|
Jeremy Solt |
d279dd |
|
|
Dan Walsh |
3eaa99 |
mls_file_read_to_clearance(ksmtuned_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Dan Walsh |
3eaa99 |
term_use_all_terms(ksmtuned_t)
|
|
Dan Walsh |
3eaa99 |
|
|
Jeremy Solt |
d279dd |
miscfiles_read_localization(ksmtuned_t)
|
|
Dan Walsh |
3eaa99 |
|