2020-07-04 13:30:45 +00:00
|
|
|
policy_module(loadkeys, 1.13.2)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
attribute_role loadkeys_roles;
|
|
|
|
|
|
|
|
type loadkeys_t;
|
|
|
|
type loadkeys_exec_t;
|
|
|
|
init_system_domain(loadkeys_t, loadkeys_exec_t)
|
|
|
|
role loadkeys_roles types loadkeys_t;
|
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow loadkeys_t self:capability { dac_override dac_read_search setuid sys_tty_config };
|
|
|
|
allow loadkeys_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow loadkeys_t self:unix_stream_socket { connect create };
|
|
|
|
|
|
|
|
kernel_read_system_state(loadkeys_t)
|
|
|
|
|
|
|
|
init_use_fds(loadkeys_t)
|
|
|
|
|
|
|
|
corecmd_exec_bin(loadkeys_t)
|
|
|
|
corecmd_exec_shell(loadkeys_t)
|
|
|
|
|
|
|
|
files_read_etc_files(loadkeys_t)
|
|
|
|
files_read_etc_runtime_files(loadkeys_t)
|
|
|
|
# keymap files are in /usr/share/keymaps or /usr/share/kbd/keymaps
|
|
|
|
files_read_usr_files(loadkeys_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_search_runtime(loadkeys_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
files_search_src(loadkeys_t)
|
|
|
|
files_search_tmp(loadkeys_t)
|
|
|
|
|
|
|
|
term_dontaudit_use_console(loadkeys_t)
|
|
|
|
term_use_unallocated_ttys(loadkeys_t)
|
|
|
|
|
|
|
|
init_read_script_tmp_files(loadkeys_t)
|
|
|
|
|
|
|
|
locallogin_use_fds(loadkeys_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(loadkeys_t)
|
|
|
|
|
2020-04-30 18:53:31 +00:00
|
|
|
userdom_use_user_terminals(loadkeys_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
userdom_list_user_home_content(loadkeys_t)
|
|
|
|
|
2020-02-08 15:07:32 +00:00
|
|
|
optional_policy(`
|
|
|
|
consolesetup_read_conf(loadkeys_t)
|
2020-02-01 20:53:36 +00:00
|
|
|
')
|
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
optional_policy(`
|
|
|
|
keyboardd_read_pipes(loadkeys_t)
|
|
|
|
')
|
|
|
|
|
|
|
|
optional_policy(`
|
2020-06-27 21:11:48 +00:00
|
|
|
nscd_dontaudit_search_runtime(loadkeys_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
')
|