|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
6b19be |
policy_module(loadkeys,1.0.1)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Declarations
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
# for compatibility with strict:
|
|
Chris PeBenito |
17de1b |
corecmd_bin_alias(loadkeys_exec_t)
|
|
Chris PeBenito |
17de1b |
',`
|
|
Chris PeBenito |
17de1b |
# cjp: this should probably be rewritten
|
|
Chris PeBenito |
17de1b |
# per user domain, since it can rw
|
|
Chris PeBenito |
17de1b |
# all user domain ttys
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type loadkeys_t;
|
|
Chris PeBenito |
17de1b |
type loadkeys_exec_t;
|
|
Chris PeBenito |
6b19be |
init_system_domain(loadkeys_t,loadkeys_exec_t)
|
|
Chris PeBenito |
17de1b |
')
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
########################################
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
# Local policy
|
|
Chris PeBenito |
17de1b |
#
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
ifdef(`targeted_policy',`
|
|
Chris PeBenito |
17de1b |
# loadkeys domain disabled in targeted policy
|
|
Chris PeBenito |
17de1b |
',`
|
|
Chris PeBenito |
6b19be |
allow loadkeys_t self:capability { dac_override dac_read_search setuid sys_tty_config };
|
|
Chris PeBenito |
c0868a |
allow loadkeys_t self:fifo_file rw_fifo_file_perms;
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
kernel_read_system_state(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
corecmd_exec_bin(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
corecmd_exec_shell(loadkeys_t)
|
|
Chris PeBenito |
6b19be |
corecmd_search_sbin(loadkeys_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
files_read_etc_files(loadkeys_t)
|
|
Chris PeBenito |
6b19be |
files_read_etc_runtime_files(loadkeys_t)
|
|
Chris PeBenito |
6b19be |
|
|
Chris PeBenito |
6b19be |
term_dontaudit_use_console(loadkeys_t)
|
|
Chris PeBenito |
6b19be |
term_dontaudit_use_unallocated_ttys(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
6b19be |
init_dontaudit_use_script_ptys(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
libs_use_ld_so(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
libs_use_shared_libs(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
locallogin_use_fds(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
miscfiles_read_localization(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
')
|