Blame policy/modules/apps/loadkeys.te
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
policy_module(loadkeys,1.0.0)
|
|
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 |
domain_type(loadkeys_t)
|
|
Chris PeBenito |
17de1b |
|
|
Chris PeBenito |
17de1b |
type loadkeys_exec_t;
|
|
Chris PeBenito |
17de1b |
domain_entry_file(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 |
17de1b |
allow loadkeys_t self:capability { setuid sys_tty_config };
|
|
Chris PeBenito |
17de1b |
allow loadkeys_t self:fifo_file rw_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 |
17de1b |
|
|
Chris PeBenito |
17de1b |
files_dontaudit_read_etc_runtime_files(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 |
')
|