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
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
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)
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
Jeremy Solt d279dd
miscfiles_read_localization(ksmtuned_t)