2022-01-06 13:55:54 +00:00
|
|
|
policy_module(ksmtuned)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type ksmtuned_t;
|
|
|
|
type ksmtuned_exec_t;
|
|
|
|
init_daemon_domain(ksmtuned_t, ksmtuned_exec_t)
|
|
|
|
|
|
|
|
type ksmtuned_initrc_exec_t;
|
|
|
|
init_script_file(ksmtuned_initrc_exec_t)
|
|
|
|
|
|
|
|
type ksmtuned_log_t;
|
|
|
|
logging_log_file(ksmtuned_log_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type ksmtuned_runtime_t alias ksmtuned_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(ksmtuned_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow ksmtuned_t self:capability { sys_ptrace sys_tty_config };
|
2021-11-14 04:36:47 +00:00
|
|
|
allow ksmtuned_t self:cap_userns sys_ptrace;
|
2018-06-23 13:00:56 +00:00
|
|
|
allow ksmtuned_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
|
|
|
|
manage_dirs_pattern(ksmtuned_t, ksmtuned_log_t, ksmtuned_log_t)
|
|
|
|
append_files_pattern(ksmtuned_t, ksmtuned_log_t, ksmtuned_log_t)
|
|
|
|
create_files_pattern(ksmtuned_t, ksmtuned_log_t, ksmtuned_log_t)
|
|
|
|
setattr_files_pattern(ksmtuned_t, ksmtuned_log_t, ksmtuned_log_t)
|
|
|
|
logging_log_filetrans(ksmtuned_t, ksmtuned_log_t, { file dir })
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_files_pattern(ksmtuned_t, ksmtuned_runtime_t, ksmtuned_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(ksmtuned_t, ksmtuned_runtime_t, file)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_read_system_state(ksmtuned_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(ksmtuned_t)
|
|
|
|
corecmd_exec_shell(ksmtuned_t)
|
|
|
|
|
|
|
|
dev_rw_sysfs(ksmtuned_t)
|
|
|
|
|
|
|
|
domain_read_all_domains_state(ksmtuned_t)
|
|
|
|
|
|
|
|
mls_file_read_to_clearance(ksmtuned_t)
|
|
|
|
|
|
|
|
term_use_all_terms(ksmtuned_t)
|
|
|
|
|
|
|
|
auth_use_nsswitch(ksmtuned_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(ksmtuned_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(ksmtuned_t)
|